pub enum Expression<T> {
If(If<T>),
Binary(BinaryExpr<T>),
Prefix(PrefixExpr<T>),
Postfix(PostfixExpr<T>),
Integer(Integer<T>),
Character(Character<T>),
Ident(Ident<T>),
Str(Str<T>),
FnDef(FnDef<T>),
Block(Block<T>),
Boolean(Boolean<T>),
Array(Array<T>),
}
Variants§
If(If<T>)
Binary(BinaryExpr<T>)
Prefix(PrefixExpr<T>)
Postfix(PostfixExpr<T>)
Integer(Integer<T>)
Character(Character<T>)
Ident(Ident<T>)
Str(Str<T>)
FnDef(FnDef<T>)
Block(Block<T>)
Boolean(Boolean<T>)
Array(Array<T>)
Implementations§
Source§impl Expression<()>
impl Expression<()>
Trait Implementations§
Source§impl<T: Clone> Clone for Expression<T>
impl<T: Clone> Clone for Expression<T>
Source§fn clone(&self) -> Expression<T>
fn clone(&self) -> Expression<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for Expression<T>
impl<T: Debug> Debug for Expression<T>
Source§impl<T: Ord> Ord for Expression<T>
impl<T: Ord> Ord for Expression<T>
Source§fn cmp(&self, other: &Expression<T>) -> Ordering
fn cmp(&self, other: &Expression<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for Expression<T>
impl<T: PartialEq> PartialEq for Expression<T>
Source§impl<T: PartialOrd> PartialOrd for Expression<T>
impl<T: PartialOrd> PartialOrd for Expression<T>
impl<T: Eq> Eq for Expression<T>
impl<T> StructuralPartialEq for Expression<T>
Auto Trait Implementations§
impl<T> Freeze for Expression<T>where
T: Freeze,
impl<T> RefUnwindSafe for Expression<T>where
T: RefUnwindSafe,
impl<T> Send for Expression<T>where
T: Send,
impl<T> Sync for Expression<T>where
T: Sync,
impl<T> Unpin for Expression<T>where
T: Unpin,
impl<T> UnwindSafe for Expression<T>where
T: UnwindSafe,
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