Enum ra_ap_syntax::ast::Item[][src]

pub enum Item {
Show 16 variants Const(Const), Enum(Enum), ExternBlock(ExternBlock), ExternCrate(ExternCrate), Fn(Fn), Impl(Impl), MacroCall(MacroCall), MacroRules(MacroRules), MacroDef(MacroDef), Module(Module), Static(Static), Struct(Struct), Trait(Trait), TypeAlias(TypeAlias), Union(Union), Use(Use),
}

Variants

Const(Const)

Tuple Fields of Const

0: Const
Enum(Enum)

Tuple Fields of Enum

0: Enum
ExternBlock(ExternBlock)

Tuple Fields of ExternBlock

0: ExternBlock
ExternCrate(ExternCrate)

Tuple Fields of ExternCrate

0: ExternCrate
Fn(Fn)

Tuple Fields of Fn

0: Fn
Impl(Impl)

Tuple Fields of Impl

0: Impl
MacroCall(MacroCall)

Tuple Fields of MacroCall

0: MacroCall
MacroRules(MacroRules)

Tuple Fields of MacroRules

0: MacroRules
MacroDef(MacroDef)

Tuple Fields of MacroDef

0: MacroDef
Module(Module)

Tuple Fields of Module

0: Module
Static(Static)

Tuple Fields of Static

0: Static
Struct(Struct)

Tuple Fields of Struct

0: Struct
Trait(Trait)

Tuple Fields of Trait

0: Trait
TypeAlias(TypeAlias)

Tuple Fields of TypeAlias

0: TypeAlias
Union(Union)

Tuple Fields of Union

0: Union
Use(Use)

Tuple Fields of Use

0: Use

Implementations

Returns text, parsed as an item, but only if it has no errors.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

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

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.