pub enum SimpleExpressionKind {
Name(Name),
Number(NumberLit),
ExplicitIterator(ExplicitIterator),
PointCollection(PointCollectionConstructor),
}
Expand description
A parsed simple expression.
Variants§
Name(Name)
A named (variable, field or function call)
Number(NumberLit)
A raw number
ExplicitIterator(ExplicitIterator)
An explicit iterator.
PointCollection(PointCollectionConstructor)
A point collection construction
Trait Implementations§
Source§impl Debug for SimpleExpressionKind
impl Debug for SimpleExpressionKind
Source§impl From<&SimpleExpressionKind> for IterNode
impl From<&SimpleExpressionKind> for IterNode
Source§fn from(value: &SimpleExpressionKind) -> Self
fn from(value: &SimpleExpressionKind) -> Self
Converts to this type from the input type.
Source§impl Parse for SimpleExpressionKind
impl Parse for SimpleExpressionKind
Source§type FirstToken = TokenOr<Maybe<TokenOr<Maybe<TokenOr<Maybe<<Name as Parse>::FirstToken>, <NumberLit as Parse>::FirstToken>>, <ExplicitIterator as Parse>::FirstToken>>, <PointCollectionConstructor as Parse>::FirstToken>
type FirstToken = TokenOr<Maybe<TokenOr<Maybe<TokenOr<Maybe<<Name as Parse>::FirstToken>, <NumberLit as Parse>::FirstToken>>, <ExplicitIterator as Parse>::FirstToken>>, <PointCollectionConstructor as Parse>::FirstToken>
The first token of a structure.
Auto Trait Implementations§
impl Freeze for SimpleExpressionKind
impl RefUnwindSafe for SimpleExpressionKind
impl Send for SimpleExpressionKind
impl Sync for SimpleExpressionKind
impl Unpin for SimpleExpressionKind
impl UnwindSafe for SimpleExpressionKind
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