Skip to main content

Expr

Enum Expr 

Source
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 Debug for Expr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<AdjacentExpr> for Expr

Source§

fn from(value: AdjacentExpr) -> Self

Converts to this type from the input type.
Source§

impl From<AngleBarList> for Expr

Source§

fn from(value: AngleBarList) -> Self

Converts to this type from the input type.
Source§

impl From<Array> for Expr

Source§

fn from(value: Array) -> Self

Converts to this type from the input type.
Source§

impl From<Assignment> for Expr

Source§

fn from(value: Assignment) -> Self

Converts to this type from the input type.
Source§

impl From<BinaryExpr> for Expr

Source§

fn from(value: BinaryExpr) -> Self

Converts to this type from the input type.
Source§

impl From<BreakExpr> for Expr

Source§

fn from(value: BreakExpr) -> Self

Converts to this type from the input type.
Source§

impl From<Catch> for Expr

Source§

fn from(value: Catch) -> Self

Converts to this type from the input type.
Source§

impl From<Collection> for Expr

Source§

fn from(value: Collection) -> Self

Converts to this type from the input type.
Source§

impl From<ContinueExpr> for Expr

Source§

fn from(value: ContinueExpr) -> Self

Converts to this type from the input type.
Source§

impl From<ControlFlow> for Expr

Source§

fn from(value: ControlFlow) -> Self

Converts to this type from the input type.
Source§

impl From<DebugExpr> for Expr

Source§

fn from(value: DebugExpr) -> Self

Converts to this type from the input type.
Source§

impl From<EvaluatedAssignment> for Expr

Source§

fn from(value: EvaluatedAssignment) -> Self

Converts to this type from the input type.
Source§

impl From<Expr> for Component

Source§

fn from(value: Expr) -> Self

Converts to this type from the input type.
Source§

impl From<FloatLiteral> for Expr

Source§

fn from(value: FloatLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<ForLoop> for Expr

Source§

fn from(value: ForLoop) -> Self

Converts to this type from the input type.
Source§

impl From<GlobalBinding> for Expr

Source§

fn from(value: GlobalBinding) -> Self

Converts to this type from the input type.
Source§

impl From<GlobalParallelAssignment> for Expr

Source§

fn from(value: GlobalParallelAssignment) -> Self

Converts to this type from the input type.
Source§

impl From<Holder> for Expr

Source§

fn from(value: Holder) -> Self

Converts to this type from the input type.
Source§

impl From<IfStatement> for Expr

Source§

fn from(value: IfStatement) -> Self

Converts to this type from the input type.
Source§

impl From<Installation> for Expr

Source§

fn from(value: Installation) -> Self

Converts to this type from the input type.
Source§

impl From<IntegerLiteral> for Expr

Source§

fn from(value: IntegerLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<LambdaExpression> for Expr

Source§

fn from(value: LambdaExpression) -> Self

Converts to this type from the input type.
Source§

impl From<List> for Expr

Source§

fn from(value: List) -> Self

Converts to this type from the input type.
Source§

impl From<Literal> for Expr

Source§

fn from(value: Literal) -> Self

Converts to this type from the input type.
Source§

impl From<LocalBinding> for Expr

Source§

fn from(value: LocalBinding) -> Self

Converts to this type from the input type.
Source§

impl From<LocalParallelAssignment> for Expr

Source§

fn from(value: LocalParallelAssignment) -> Self

Converts to this type from the input type.
Source§

impl From<MethodInstallation> for Expr

Source§

fn from(value: MethodInstallation) -> Self

Converts to this type from the input type.
Source§

impl From<NewInstallation> for Expr

Source§

fn from(value: NewInstallation) -> Self

Converts to this type from the input type.
Source§

impl From<NewStatement> for Expr

Source§

fn from(value: NewStatement) -> Self

Converts to this type from the input type.
Source§

impl From<OperatorAssignment> for Expr

Source§

fn from(value: OperatorAssignment) -> Self

Converts to this type from the input type.
Source§

impl From<OperatorExpr> for Expr

Source§

fn from(value: OperatorExpr) -> Self

Converts to this type from the input type.
Source§

impl From<OperatorInstallation> for Expr

Source§

fn from(value: OperatorInstallation) -> Self

Converts to this type from the input type.
Source§

impl From<OptionExpression> for Expr

Source§

fn from(value: OptionExpression) -> Self

Converts to this type from the input type.
Source§

impl From<ParallelAssignment> for Expr

Source§

fn from(value: ParallelAssignment) -> Self

Converts to this type from the input type.
Source§

impl From<PostfixExpr> for Expr

Source§

fn from(value: PostfixExpr) -> Self

Converts to this type from the input type.
Source§

impl From<PrefixExpr> for Expr

Source§

fn from(value: PrefixExpr) -> Self

Converts to this type from the input type.
Source§

impl From<ProfilingExpr> for Expr

Source§

fn from(value: ProfilingExpr) -> Self

Converts to this type from the input type.
Source§

impl From<QuoteExpression> for Expr

Source§

fn from(value: QuoteExpression) -> Self

Converts to this type from the input type.
Source§

impl From<RawStringLiteral> for Expr

Source§

fn from(value: RawStringLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<ReturnExpr> for Expr

Source§

fn from(value: ReturnExpr) -> Self

Converts to this type from the input type.
Source§

impl From<Sequence> for Expr

Source§

fn from(value: Sequence) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleBinding> for Expr

Source§

fn from(value: SimpleBinding) -> Self

Converts to this type from the input type.
Source§

impl From<StringLiteral> for Expr

Source§

fn from(value: StringLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<Symbol> for Expr

Source§

fn from(value: Symbol) -> Self

Converts to this type from the input type.
Source§

impl From<Throw> for Expr

Source§

fn from(value: Throw) -> Self

Converts to this type from the input type.
Source§

impl From<Trap> for Expr

Source§

fn from(value: Trap) -> Self

Converts to this type from the input type.
Source§

impl From<TryStatement> for Expr

Source§

fn from(value: TryStatement) -> Self

Converts to this type from the input type.
Source§

impl From<WhileLoop> for Expr

Source§

fn from(value: WhileLoop) -> Self

Converts to this type from the input type.
Source§

impl Lex for Expr

Source§

fn to_tokens(&self, output: &mut TokenStream)

Appends this value’s token trees to output.
Source§

fn to_token_stream(&self) -> TokenStream

Emits this value into a fresh token stream.
Source§

fn to_m2(&self) -> String

Renders this value as normalized Macaulay2 source.
Source§

impl Parse for Expr

Source§

fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>

Consumes this value from input. Read more
Source§

impl PrettyTree for Expr

Source§

fn pretty_tree(&self) -> PrettyNode

Builds the presentation node for this syntax value.
Source§

impl<N> Reconstruct<N> for Expr
where N: ExternalCstNode,

Source§

fn matches(node: &N) -> bool

Reports whether node can reconstruct this typed value.
Source§

fn reconstruct(node: N) -> Result<Self, ReconstructError>

Converts a matching external node into typed syntax. Read more
Source§

impl Spanned for Expr

Source§

fn span(&self) -> Span

Returns the smallest span covering this 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.