pub enum Item {
Fn(FnDecl),
Struct(StructDecl),
Enum(EnumDecl),
Interface(InterfaceDecl),
}Expand description
Variants§
Fn(FnDecl)
a fn declaration – a free function, or, if type_name is set, a
fn Type.method method definition.
Struct(StructDecl)
a struct declaration with typed fields.
Enum(EnumDecl)
an enum declaration with data-carrying variants.
Interface(InterfaceDecl)
an interface declaration – a set of method signatures, no bodies.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin 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