pub enum Expression<const ITER: bool> {
ImplicitIterator(ImplicitIterator<ITER>),
Binop(ExprBinop<ITER>),
}
Expand description
A parsed expression. Either an implicit iterator or a binary operation.
Variants§
ImplicitIterator(ImplicitIterator<ITER>)
Simple values separated by a comma.
Binop(ExprBinop<ITER>)
A binary operator expression.
Trait Implementations§
Source§impl<const ITER: bool> Debug for Expression<ITER>
impl<const ITER: bool> Debug for Expression<ITER>
Source§impl<const ITER: bool> From<&Expression<ITER>> for IterNode
impl<const ITER: bool> From<&Expression<ITER>> for IterNode
Source§fn from(value: &Expression<ITER>) -> Self
fn from(value: &Expression<ITER>) -> Self
Converts to this type from the input type.
Source§impl<const ITER: bool> Parse for Expression<ITER>
impl<const ITER: bool> Parse for Expression<ITER>
Source§type FirstToken = <SimpleExpression as Parse>::FirstToken
type FirstToken = <SimpleExpression as Parse>::FirstToken
The first token of a structure.
Auto Trait Implementations§
impl<const ITER: bool> Freeze for Expression<ITER>
impl<const ITER: bool> RefUnwindSafe for Expression<ITER>
impl<const ITER: bool> Send for Expression<ITER>
impl<const ITER: bool> Sync for Expression<ITER>
impl<const ITER: bool> Unpin for Expression<ITER>
impl<const ITER: bool> UnwindSafe for Expression<ITER>
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> CheckParses for Twhere
T: Parse,
impl<T> CheckParses for Twhere
T: Parse,
Source§fn check_parses<'t, I>(input: &InputStream<'t, I>) -> Option<bool>
fn check_parses<'t, I>(input: &InputStream<'t, I>) -> Option<bool>
Check if
Self
would parse given the tokens.Source§impl<T> Convert for T
impl<T> Convert for T
Source§fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
Convert
self
into a specific type. Read moreSource§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Check if
self
can be converted into a specific type. Read more