pub enum Expr {
Show 20 variants
Literal(Literal),
Collection(Collection),
Holder(Holder),
OperatorExpr(OperatorExpr),
Assignment(Assignment),
OptionExpression(OptionExpression),
LambdaExpression(LambdaExpression),
IfStatement(IfStatement),
ForLoop(ForLoop),
WhileLoop(WhileLoop),
TryStatement(TryStatement),
QuoteExpression(QuoteExpression),
NewStatement(NewStatement),
ControlFlow(ControlFlow),
Catch(Catch),
Throw(Throw),
Trap(Trap),
DebugExpr(DebugExpr),
ProfilingExpr(ProfilingExpr),
Symbol(Symbol),
}Expand description
The typed Expr syntax category.
Variants§
Literal(Literal)
The Literal syntax alternative.
Collection(Collection)
The Collection syntax alternative.
Holder(Holder)
The Holder syntax alternative.
OperatorExpr(OperatorExpr)
The OperatorExpr syntax alternative.
Assignment(Assignment)
The Assignment syntax alternative.
OptionExpression(OptionExpression)
The OptionExpression syntax alternative.
LambdaExpression(LambdaExpression)
The LambdaExpression syntax alternative.
IfStatement(IfStatement)
The IfStatement syntax alternative.
ForLoop(ForLoop)
The ForLoop syntax alternative.
WhileLoop(WhileLoop)
The WhileLoop syntax alternative.
TryStatement(TryStatement)
The TryStatement syntax alternative.
QuoteExpression(QuoteExpression)
The QuoteExpression syntax alternative.
NewStatement(NewStatement)
The NewStatement syntax alternative.
ControlFlow(ControlFlow)
The ControlFlow syntax alternative.
Catch(Catch)
The Catch syntax alternative.
Throw(Throw)
The Throw syntax alternative.
Trap(Trap)
The Trap syntax alternative.
DebugExpr(DebugExpr)
The DebugExpr syntax alternative.
ProfilingExpr(ProfilingExpr)
The ProfilingExpr syntax alternative.
Symbol(Symbol)
The Symbol syntax alternative.
Trait Implementations§
Source§impl From<AdjacentExpr> for Expr
impl From<AdjacentExpr> for Expr
Source§fn from(value: AdjacentExpr) -> Self
fn from(value: AdjacentExpr) -> Self
Converts to this type from the input type.
Source§impl From<AngleBarList> for Expr
impl From<AngleBarList> for Expr
Source§fn from(value: AngleBarList) -> Self
fn from(value: AngleBarList) -> Self
Converts to this type from the input type.
Source§impl From<Assignment> for Expr
impl From<Assignment> for Expr
Source§fn from(value: Assignment) -> Self
fn from(value: Assignment) -> Self
Converts to this type from the input type.
Source§impl From<BinaryExpr> for Expr
impl From<BinaryExpr> for Expr
Source§fn from(value: BinaryExpr) -> Self
fn from(value: BinaryExpr) -> Self
Converts to this type from the input type.
Source§impl From<Collection> for Expr
impl From<Collection> for Expr
Source§fn from(value: Collection) -> Self
fn from(value: Collection) -> Self
Converts to this type from the input type.
Source§impl From<ContinueExpr> for Expr
impl From<ContinueExpr> for Expr
Source§fn from(value: ContinueExpr) -> Self
fn from(value: ContinueExpr) -> Self
Converts to this type from the input type.
Source§impl From<ControlFlow> for Expr
impl From<ControlFlow> for Expr
Source§fn from(value: ControlFlow) -> Self
fn from(value: ControlFlow) -> Self
Converts to this type from the input type.
Source§impl From<EvaluatedAssignment> for Expr
impl From<EvaluatedAssignment> for Expr
Source§fn from(value: EvaluatedAssignment) -> Self
fn from(value: EvaluatedAssignment) -> Self
Converts to this type from the input type.
Source§impl From<FloatLiteral> for Expr
impl From<FloatLiteral> for Expr
Source§fn from(value: FloatLiteral) -> Self
fn from(value: FloatLiteral) -> Self
Converts to this type from the input type.
Source§impl From<GlobalBinding> for Expr
impl From<GlobalBinding> for Expr
Source§fn from(value: GlobalBinding) -> Self
fn from(value: GlobalBinding) -> Self
Converts to this type from the input type.
Source§impl From<GlobalParallelAssignment> for Expr
impl From<GlobalParallelAssignment> for Expr
Source§fn from(value: GlobalParallelAssignment) -> Self
fn from(value: GlobalParallelAssignment) -> Self
Converts to this type from the input type.
Source§impl From<IfStatement> for Expr
impl From<IfStatement> for Expr
Source§fn from(value: IfStatement) -> Self
fn from(value: IfStatement) -> Self
Converts to this type from the input type.
Source§impl From<Installation> for Expr
impl From<Installation> for Expr
Source§fn from(value: Installation) -> Self
fn from(value: Installation) -> Self
Converts to this type from the input type.
Source§impl From<IntegerLiteral> for Expr
impl From<IntegerLiteral> for Expr
Source§fn from(value: IntegerLiteral) -> Self
fn from(value: IntegerLiteral) -> Self
Converts to this type from the input type.
Source§impl From<LambdaExpression> for Expr
impl From<LambdaExpression> for Expr
Source§fn from(value: LambdaExpression) -> Self
fn from(value: LambdaExpression) -> Self
Converts to this type from the input type.
Source§impl From<LocalBinding> for Expr
impl From<LocalBinding> for Expr
Source§fn from(value: LocalBinding) -> Self
fn from(value: LocalBinding) -> Self
Converts to this type from the input type.
Source§impl From<LocalParallelAssignment> for Expr
impl From<LocalParallelAssignment> for Expr
Source§fn from(value: LocalParallelAssignment) -> Self
fn from(value: LocalParallelAssignment) -> Self
Converts to this type from the input type.
Source§impl From<MethodInstallation> for Expr
impl From<MethodInstallation> for Expr
Source§fn from(value: MethodInstallation) -> Self
fn from(value: MethodInstallation) -> Self
Converts to this type from the input type.
Source§impl From<NewInstallation> for Expr
impl From<NewInstallation> for Expr
Source§fn from(value: NewInstallation) -> Self
fn from(value: NewInstallation) -> Self
Converts to this type from the input type.
Source§impl From<NewStatement> for Expr
impl From<NewStatement> for Expr
Source§fn from(value: NewStatement) -> Self
fn from(value: NewStatement) -> Self
Converts to this type from the input type.
Source§impl From<OperatorAssignment> for Expr
impl From<OperatorAssignment> for Expr
Source§fn from(value: OperatorAssignment) -> Self
fn from(value: OperatorAssignment) -> Self
Converts to this type from the input type.
Source§impl From<OperatorExpr> for Expr
impl From<OperatorExpr> for Expr
Source§fn from(value: OperatorExpr) -> Self
fn from(value: OperatorExpr) -> Self
Converts to this type from the input type.
Source§impl From<OperatorInstallation> for Expr
impl From<OperatorInstallation> for Expr
Source§fn from(value: OperatorInstallation) -> Self
fn from(value: OperatorInstallation) -> Self
Converts to this type from the input type.
Source§impl From<OptionExpression> for Expr
impl From<OptionExpression> for Expr
Source§fn from(value: OptionExpression) -> Self
fn from(value: OptionExpression) -> Self
Converts to this type from the input type.
Source§impl From<ParallelAssignment> for Expr
impl From<ParallelAssignment> for Expr
Source§fn from(value: ParallelAssignment) -> Self
fn from(value: ParallelAssignment) -> Self
Converts to this type from the input type.
Source§impl From<PostfixExpr> for Expr
impl From<PostfixExpr> for Expr
Source§fn from(value: PostfixExpr) -> Self
fn from(value: PostfixExpr) -> Self
Converts to this type from the input type.
Source§impl From<PrefixExpr> for Expr
impl From<PrefixExpr> for Expr
Source§fn from(value: PrefixExpr) -> Self
fn from(value: PrefixExpr) -> Self
Converts to this type from the input type.
Source§impl From<ProfilingExpr> for Expr
impl From<ProfilingExpr> for Expr
Source§fn from(value: ProfilingExpr) -> Self
fn from(value: ProfilingExpr) -> Self
Converts to this type from the input type.
Source§impl From<QuoteExpression> for Expr
impl From<QuoteExpression> for Expr
Source§fn from(value: QuoteExpression) -> Self
fn from(value: QuoteExpression) -> Self
Converts to this type from the input type.
Source§impl From<RawStringLiteral> for Expr
impl From<RawStringLiteral> for Expr
Source§fn from(value: RawStringLiteral) -> Self
fn from(value: RawStringLiteral) -> Self
Converts to this type from the input type.
Source§impl From<ReturnExpr> for Expr
impl From<ReturnExpr> for Expr
Source§fn from(value: ReturnExpr) -> Self
fn from(value: ReturnExpr) -> Self
Converts to this type from the input type.
Source§impl From<SimpleBinding> for Expr
impl From<SimpleBinding> for Expr
Source§fn from(value: SimpleBinding) -> Self
fn from(value: SimpleBinding) -> Self
Converts to this type from the input type.
Source§impl From<StringLiteral> for Expr
impl From<StringLiteral> for Expr
Source§fn from(value: StringLiteral) -> Self
fn from(value: StringLiteral) -> Self
Converts to this type from the input type.
Source§impl From<TryStatement> for Expr
impl From<TryStatement> for Expr
Source§fn from(value: TryStatement) -> Self
fn from(value: TryStatement) -> Self
Converts to this type from the input type.
Source§impl Lex for Expr
impl Lex for Expr
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl<N> Migrate<N> for Exprwhere
N: ExternalCstNode,
impl<N> Migrate<N> for Exprwhere
N: ExternalCstNode,
Source§impl Parse for Expr
impl Parse for Expr
Source§fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
Consumes this value from
input. Read moreSource§impl PrettyTree for Expr
impl PrettyTree for Expr
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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