Enum syn::ImplItem[][src]

pub enum ImplItem {
    Const(ImplItemConst),
    Method(ImplItemMethod),
    Type(ImplItemType),
    Macro(ImplItemMacro),
    Verbatim(ImplItemVerbatim),
}

An item within an impl block.

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 an impl block.

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

A method within an impl block.

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

An associated type within an impl block.

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

A macro invocation within an impl block.

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

Tokens within an impl block not interpreted by Syn.

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

Trait Implementations

impl Synom for ImplItem
[src]

A short name of the type being parsed. Read more

impl Debug for ImplItem
[src]

Formats the value using the given formatter. Read more

impl Eq for ImplItem
[src]

impl PartialEq for ImplItem
[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 ImplItem
[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 ImplItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<ImplItemConst> for ImplItem
[src]

Performs the conversion.

impl From<ImplItemMethod> for ImplItem
[src]

Performs the conversion.

impl From<ImplItemType> for ImplItem
[src]

Performs the conversion.

impl From<ImplItemMacro> for ImplItem
[src]

Performs the conversion.

impl From<ImplItemVerbatim> for ImplItem
[src]

Performs the conversion.

impl ToTokens for ImplItem
[src]

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

Auto Trait Implementations

impl !Send for ImplItem

impl !Sync for ImplItem