pub enum AstItem {
Import(ImportDeclaration),
Export(ExportDeclaration),
Struct(StructDeclaration),
Program(ProgramDeclaration),
Function(FunctionDeclaration),
Block(BlockDeclaration),
}
Variants§
Import(ImportDeclaration)
Export(ExportDeclaration)
Struct(StructDeclaration)
Program(ProgramDeclaration)
Function(FunctionDeclaration)
Block(BlockDeclaration)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AstItem
impl<'de> Deserialize<'de> for AstItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AstItem
impl StructuralPartialEq for AstItem
Auto Trait Implementations§
impl Freeze for AstItem
impl RefUnwindSafe for AstItem
impl Send for AstItem
impl Sync for AstItem
impl Unpin for AstItem
impl UnwindSafe for AstItem
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