Struct syn::Item
[−]
[src]
pub struct Item {
pub ident: Ident,
pub vis: Visibility,
pub attrs: Vec<Attribute>,
pub node: ItemKind,
}An item
The name might be a dummy name in case of anonymous items
Fields
ident: Ident
vis: Visibility
attrs: Vec<Attribute>
node: ItemKind
Trait Implementations
impl ToTokens for Item[src]
impl Debug for Item[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for Item[src]
fn clone(&self) -> Item[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for Item[src]
impl PartialEq for Item[src]
fn eq(&self, __arg_0: &Item) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Item) -> bool[src]
This method tests for !=.
impl Hash for Item[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl From<DeriveInput> for Item[src]
fn from(input: DeriveInput) -> Item[src]
Performs the conversion.