Enum geo_aid::script::parser::SimpleExpressionKind
source · pub enum SimpleExpressionKind {
Name(Name),
Number(Number),
ExplicitIterator(ExplicitIterator),
PointCollection(PointCollectionConstructor),
}
Expand description
A parsed simple expression.
Variants§
Name(Name)
A named (variable, field or function call)
Number(Number)
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
type FirstToken = TokenOr<Maybe<TokenOr<Maybe<TokenOr<Maybe<<Name as Parse>::FirstToken>, <Number as Parse>::FirstToken>>, <ExplicitIterator as Parse>::FirstToken>>, <PointCollectionConstructor as Parse>::FirstToken>
source§fn parse<'t, I: Iterator<Item = &'t Token> + Clone>(
input: &mut InputStream<'t, I>,
) -> Result<Self, Error>
fn parse<'t, I: Iterator<Item = &'t Token> + Clone>( input: &mut InputStream<'t, I>, ) -> Result<Self, Error>
Errors Read more
fn get_span(&self) -> Span
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,
fn check_parses<'t, I>(input: &InputStream<'t, I>) -> Option<bool>
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>,
Errors Read more
source§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Errors Read more