Enum syn::TraitItem[][src]

pub enum TraitItem {
    Const(TraitItemConst),
    Method(TraitItemMethod),
    Type(TraitItemType),
    Macro(TraitItemMacro),
    Verbatim(TraitItemVerbatim),
}

An item declaration within the definition of a trait.

This type is available if Syn is built with the "full" feature.

Syntax tree enum

This type is a syntax tree enum.

Variants

An associated constant within the definition of a trait.

This type is available if Syn is built with the "full" feature.

A trait method within the definition of a trait.

This type is available if Syn is built with the "full" feature.

An associated type within the definition of a trait.

This type is available if Syn is built with the "full" feature.

A macro invocation within the definition of a trait.

This type is available if Syn is built with the "full" feature.

Tokens within the definition of a trait not interpreted by Syn.

This type is available if Syn is built with the "full" feature.

Trait Implementations

impl Synom for TraitItem
[src]

A short name of the type being parsed. Read more

impl Debug for TraitItem
[src]

Formats the value using the given formatter. Read more

impl Eq for TraitItem
[src]

impl PartialEq for TraitItem
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for TraitItem
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for TraitItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<TraitItemConst> for TraitItem
[src]

Performs the conversion.

impl From<TraitItemMethod> for TraitItem
[src]

Performs the conversion.

impl From<TraitItemType> for TraitItem
[src]

Performs the conversion.

impl From<TraitItemMacro> for TraitItem
[src]

Performs the conversion.

impl From<TraitItemVerbatim> for TraitItem
[src]

Performs the conversion.

impl ToTokens for TraitItem
[src]

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

Auto Trait Implementations

impl !Send for TraitItem

impl !Sync for TraitItem