pub enum Ast<Data = Span> {
Simple {
token: Token,
data: Data,
},
Complex {
definition: Parc<SyntaxDefinition>,
values: Tuple<Self>,
data: Data,
},
SyntaxDefinition {
def: Parc<SyntaxDefinition>,
data: Data,
},
FromScratch {
next: Option<Box<Self>>,
data: Data,
},
}Variants§
Implementations§
Trait Implementations§
impl<Data: Eq> Eq for Ast<Data>
impl<Data> StructuralPartialEq for Ast<Data>
Auto Trait Implementations§
impl<Data> Freeze for Ast<Data>where
Data: Freeze,
impl<Data> RefUnwindSafe for Ast<Data>where
Data: RefUnwindSafe,
impl<Data> Send for Ast<Data>where
Data: Send,
impl<Data> Sync for Ast<Data>where
Data: Sync,
impl<Data> Unpin for Ast<Data>where
Data: Unpin,
impl<Data> UnwindSafe for Ast<Data>where
Data: UnwindSafe + RefUnwindSafe,
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