pub enum Item {
ModuleItem(ModuleItem),
FunctionItem(FunctionItem),
TypeAliasItem(TypeAliasItem),
ConstItem(ConstItem),
StructItem(StructItem),
EnumItem(EnumItem),
ImportItem(ImportItem),
}
Variants§
ModuleItem(ModuleItem)
FunctionItem(FunctionItem)
TypeAliasItem(TypeAliasItem)
ConstItem(ConstItem)
StructItem(StructItem)
EnumItem(EnumItem)
ImportItem(ImportItem)
Implementations§
Trait Implementations§
Source§impl AstNode for Item
impl AstNode for Item
fn cast(node: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
Auto Trait Implementations§
impl Freeze for Item
impl !RefUnwindSafe for Item
impl !Send for Item
impl !Sync for Item
impl Unpin for Item
impl !UnwindSafe for Item
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more