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]

[src]

[src]

impl Debug for ImplItem
[src]

[src]

Formats the value using the given formatter.

impl Eq for ImplItem
[src]

impl PartialEq for ImplItem
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for ImplItem
[src]

[src]

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

1.3.0
[src]

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

impl Clone for ImplItem
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<ImplItemConst> for ImplItem
[src]

[src]

Performs the conversion.

impl From<ImplItemMethod> for ImplItem
[src]

[src]

Performs the conversion.

impl From<ImplItemType> for ImplItem
[src]

[src]

Performs the conversion.

impl From<ImplItemMacro> for ImplItem
[src]

[src]

Performs the conversion.

impl From<ImplItemVerbatim> for ImplItem
[src]

[src]

Performs the conversion.

impl ToTokens for ImplItem
[src]

[src]

Write self to the given Tokens. Read more

[src]

Convert self directly into a Tokens object. Read more