pub enum TopLevel {
Import {
name: String,
is_string_import: bool,
},
Module {
name: String,
contents: Vec<TopLevel>,
},
Function(PFunction),
Struct(Struct),
Bundle(Bundle),
Extension(Extension),
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TopLevel
impl !RefUnwindSafe for TopLevel
impl !Send for TopLevel
impl !Sync for TopLevel
impl Unpin for TopLevel
impl !UnwindSafe for TopLevel
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