pub enum Item {
Show 14 variants
Function(Function),
Struct(Struct),
Enum(Enum),
Trait(Trait),
Impl(Impl),
Use(Use),
Const(Const),
Static(Static),
TypeAlias(TypeAlias),
Module(ModuleDecl),
OpaqueType(OpaqueType),
Extend(Extend),
Effect(EffectDecl),
Supervisor(SupervisorDecl),
}Expand description
Top-level items (functions, structs, etc.)
Variants§
Function(Function)
Struct(Struct)
Enum(Enum)
Trait(Trait)
Impl(Impl)
Use(Use)
Const(Const)
Static(Static)
TypeAlias(TypeAlias)
Module(ModuleDecl)
OpaqueType(OpaqueType)
Opaque type: opaque type UserId = i64;
Extend(Extend)
Extension methods: extend i64 { fn is_even(self) -> bool { ... } }
Effect(EffectDecl)
Algebraic effect declaration: effect IO { fn read() -> String; }
Supervisor(SupervisorDecl)
Supervisor tree: supervisor MySup { ... }
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 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