pub enum Item {
}Expand description
Top-level items in a module
Variants§
Function(Function)
fn name(args) -> Type with Effects: body
Component(Component)
component Name(props) -> UI with Reactive: jsx
Shader(Shader)
shader Name(inputs) -> Fragment with GPU: body
Actor(Actor)
actor Name: handlers
Struct(Struct)
struct Name { fields }
Enum(Enum)
enum Name { variants }
Trait(Trait)
trait Name { methods }
Impl(Impl)
impl Trait for Type { methods }
TypeAlias(TypeAlias)
type Alias = Type
Use(Use)
use path::to::item
Mod(Mod)
mod name
Const(Const)
const NAME: Type = value
Comptime(ComptimeBlock)
comptime { code }
Macro(MacroDef)
macro name!(params) { expansion }
Test(TestDef)
test "name": body
Trait Implementations§
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