Enum TopItem
pub enum TopItem {
Import(ImportDecl),
Runtime(FunctionDecl),
Meta(MetaFunctionDecl),
ExternModule(ExternModuleDecl),
Struct(StructDecl),
Enum(EnumDecl),
}Expand description
Any top-level frontend item.
Variants§
Import(ImportDecl)
Import declaration item.
Runtime(FunctionDecl)
Runtime function item.
Meta(MetaFunctionDecl)
Meta function item.
ExternModule(ExternModuleDecl)
Extern module item.
Struct(StructDecl)
Struct declaration item.
Enum(EnumDecl)
Enum declaration item.
Trait Implementations§
impl Eq for TopItem
impl StructuralPartialEq for TopItem
Auto Trait Implementations§
impl Freeze for TopItem
impl RefUnwindSafe for TopItem
impl Send for TopItem
impl Sync for TopItem
impl Unpin for TopItem
impl UnwindSafe for TopItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more