pub enum Primary<'tree> {
Show 37 variants
Lhs(Box<Lhs<'tree>>),
SimpleNumeric(Box<SimpleNumeric<'tree>>),
Array(Box<Array<'tree>>),
Begin(Box<Begin<'tree>>),
Break(Box<Break<'tree>>),
Call(Box<Call<'tree>>),
Case(Box<Case<'tree>>),
CaseMatch(Box<CaseMatch<'tree>>),
ChainedString(Box<ChainedString<'tree>>),
Character(Box<Character<'tree>>),
Class(Box<Class<'tree>>),
DelimitedSymbol(Box<DelimitedSymbol<'tree>>),
For(Box<For<'tree>>),
Hash(Box<Hash<'tree>>),
HeredocBeginning(Box<HeredocBeginning<'tree>>),
If(Box<If<'tree>>),
Lambda(Box<Lambda<'tree>>),
Method(Box<Method<'tree>>),
Module(Box<Module<'tree>>),
Next(Box<Next<'tree>>),
ParenthesizedStatements(Box<ParenthesizedStatements<'tree>>),
Redo(Box<Redo<'tree>>),
Regex(Box<Regex<'tree>>),
Retry(Box<Retry<'tree>>),
Return(Box<Return<'tree>>),
SimpleSymbol(Box<SimpleSymbol<'tree>>),
SingletonClass(Box<SingletonClass<'tree>>),
SingletonMethod(Box<SingletonMethod<'tree>>),
String(Box<String<'tree>>),
StringArray(Box<StringArray<'tree>>),
Subshell(Box<Subshell<'tree>>),
SymbolArray(Box<SymbolArray<'tree>>),
Unary(Box<Unary<'tree>>),
Unless(Box<Unless<'tree>>),
Until(Box<Until<'tree>>),
While(Box<While<'tree>>),
Yield(Box<Yield<'tree>>),
}Variants§
Lhs(Box<Lhs<'tree>>)
SimpleNumeric(Box<SimpleNumeric<'tree>>)
Array(Box<Array<'tree>>)
Begin(Box<Begin<'tree>>)
Break(Box<Break<'tree>>)
Call(Box<Call<'tree>>)
Case(Box<Case<'tree>>)
CaseMatch(Box<CaseMatch<'tree>>)
ChainedString(Box<ChainedString<'tree>>)
Character(Box<Character<'tree>>)
Class(Box<Class<'tree>>)
DelimitedSymbol(Box<DelimitedSymbol<'tree>>)
For(Box<For<'tree>>)
Hash(Box<Hash<'tree>>)
HeredocBeginning(Box<HeredocBeginning<'tree>>)
If(Box<If<'tree>>)
Lambda(Box<Lambda<'tree>>)
Method(Box<Method<'tree>>)
Module(Box<Module<'tree>>)
Next(Box<Next<'tree>>)
ParenthesizedStatements(Box<ParenthesizedStatements<'tree>>)
Redo(Box<Redo<'tree>>)
Regex(Box<Regex<'tree>>)
Retry(Box<Retry<'tree>>)
Return(Box<Return<'tree>>)
SimpleSymbol(Box<SimpleSymbol<'tree>>)
SingletonClass(Box<SingletonClass<'tree>>)
SingletonMethod(Box<SingletonMethod<'tree>>)
String(Box<String<'tree>>)
StringArray(Box<StringArray<'tree>>)
Subshell(Box<Subshell<'tree>>)
SymbolArray(Box<SymbolArray<'tree>>)
Unary(Box<Unary<'tree>>)
Unless(Box<Unless<'tree>>)
Until(Box<Until<'tree>>)
While(Box<While<'tree>>)
Yield(Box<Yield<'tree>>)
Trait Implementations§
impl<'tree> Eq for Primary<'tree>
impl<'tree> StructuralPartialEq for Primary<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for Primary<'tree>
impl<'tree> RefUnwindSafe for Primary<'tree>
impl<'tree> Send for Primary<'tree>
impl<'tree> Sync for Primary<'tree>
impl<'tree> Unpin for Primary<'tree>
impl<'tree> UnsafeUnpin for Primary<'tree>
impl<'tree> UnwindSafe for Primary<'tree>
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