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 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 Tokens. Read more

[]

Convert self directly into a Tokens object. Read more

Auto Trait Implementations

impl !Send for ImplItem

impl !Sync for ImplItem