Enum ra_ap_syntax::ast::Item [−][src]
pub enum Item { }
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)
Implementations
Trait Implementations
fn attrs(&self) -> AstChildren<Attr>ⓘNotable traits for AstChildren<N>
impl<N: AstNode> Iterator for AstChildren<N> type Item = N;
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Item
impl !UnwindSafe for Item
Blanket Implementations
fn replace_children(
&self,
to_replace: RangeInclusive<SyntaxElement>,
to_insert: impl IntoIterator<Item = SyntaxElement>
) -> Self
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.