Skip to main content

Expr

Enum Expr 

Source
pub enum Expr {
Show 20 variants Literal(ExprLiteral), Collection(ExprCollection), Holder(Holder), Op(ExprOp), Assign(ExprAssign), Option(ExprOption), Lambda(ExprLambda), If(ExprIf), For(ExprFor), While(ExprWhile), Try(ExprTry), Quote(ExprQuote), New(ExprNew), Control(ExprControl), Catch(ExprCatch), Throw(ExprThrow), Trap(ExprTrap), Debug(ExprDebug), Profile(ExprProfile), Symbol(Symbol),
}
Expand description

Enum generated by strutuct! for Expr.

Variants§

§

Literal(ExprLiteral)

Variant Expr::Literal generated by strutuct!.

§

Collection(ExprCollection)

Variant Expr::Collection generated by strutuct!.

§

Holder(Holder)

Variant Expr::Holder generated by strutuct!.

§

Op(ExprOp)

Variant Expr::Op generated by strutuct!.

§

Assign(ExprAssign)

Variant Expr::Assign generated by strutuct!.

§

Option(ExprOption)

Variant Expr::Option generated by strutuct!.

§

Lambda(ExprLambda)

Variant Expr::Lambda generated by strutuct!.

§

If(ExprIf)

Variant Expr::If generated by strutuct!.

§

For(ExprFor)

Variant Expr::For generated by strutuct!.

§

While(ExprWhile)

Variant Expr::While generated by strutuct!.

§

Try(ExprTry)

Variant Expr::Try generated by strutuct!.

§

Quote(ExprQuote)

Variant Expr::Quote generated by strutuct!.

§

New(ExprNew)

Variant Expr::New generated by strutuct!.

§

Control(ExprControl)

Variant Expr::Control generated by strutuct!.

§

Catch(ExprCatch)

Variant Expr::Catch generated by strutuct!.

§

Throw(ExprThrow)

Variant Expr::Throw generated by strutuct!.

§

Trap(ExprTrap)

Variant Expr::Trap generated by strutuct!.

§

Debug(ExprDebug)

Variant Expr::Debug generated by strutuct!.

§

Profile(ExprProfile)

Variant Expr::Profile generated by strutuct!.

§

Symbol(Symbol)

Variant Expr::Symbol generated by strutuct!.

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<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<Expr> for Component

Source§

fn from(value: Expr) -> Self

Converts to this type from the input type.
Source§

impl From<Expr> for PackedContent

Source§

fn from(value: Expr) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssign> for Expr

Source§

fn from(value: ExprAssign) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignAugmented> for Expr

Source§

fn from(value: ExprAssignAugmented) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignEvaluated> for Expr

Source§

fn from(value: ExprAssignEvaluated) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignInstall> for Expr

Source§

fn from(value: ExprAssignInstall) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignInstallMethod> for Expr

Source§

fn from(value: ExprAssignInstallMethod) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignInstallNew> for Expr

Source§

fn from(value: ExprAssignInstallNew) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignInstallOp> for Expr

Source§

fn from(value: ExprAssignInstallOp) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignOp> for Expr

Source§

fn from(value: ExprAssignOp) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignParallel> for Expr

Source§

fn from(value: ExprAssignParallel) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignParallelGlobal> for Expr

Source§

fn from(value: ExprAssignParallelGlobal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignParallelLocal> for Expr

Source§

fn from(value: ExprAssignParallelLocal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignSimple> for Expr

Source§

fn from(value: ExprAssignSimple) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignSimpleGlobal> for Expr

Source§

fn from(value: ExprAssignSimpleGlobal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignSimpleLocal> for Expr

Source§

fn from(value: ExprAssignSimpleLocal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprCatch> for Expr

Source§

fn from(value: ExprCatch) -> Self

Converts to this type from the input type.
Source§

impl From<ExprCollection> for Expr

Source§

fn from(value: ExprCollection) -> Self

Converts to this type from the input type.
Source§

impl From<ExprControl> for Expr

Source§

fn from(value: ExprControl) -> Self

Converts to this type from the input type.
Source§

impl From<ExprControlBreak> for Expr

Source§

fn from(value: ExprControlBreak) -> Self

Converts to this type from the input type.
Source§

impl From<ExprControlContinue> for Expr

Source§

fn from(value: ExprControlContinue) -> Self

Converts to this type from the input type.
Source§

impl From<ExprControlReturn> for Expr

Source§

fn from(value: ExprControlReturn) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebug> for Expr

Source§

fn from(value: ExprDebug) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugBreakpoint> for Expr

Source§

fn from(value: ExprDebugBreakpoint) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugFinish> for Expr

Source§

fn from(value: ExprDebugFinish) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugShield> for Expr

Source§

fn from(value: ExprDebugShield) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugStep> for Expr

Source§

fn from(value: ExprDebugStep) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugTest> for Expr

Source§

fn from(value: ExprDebugTest) -> Self

Converts to this type from the input type.
Source§

impl From<ExprFor> for Expr

Source§

fn from(value: ExprFor) -> Self

Converts to this type from the input type.
Source§

impl From<ExprForBare> for Expr

Source§

fn from(value: ExprForBare) -> Self

Converts to this type from the input type.
Source§

impl From<ExprForIn> for Expr

Source§

fn from(value: ExprForIn) -> Self

Converts to this type from the input type.
Source§

impl From<ExprForRange> for Expr

Source§

fn from(value: ExprForRange) -> Self

Converts to this type from the input type.
Source§

impl From<ExprIf> for Expr

Source§

fn from(value: ExprIf) -> Self

Converts to this type from the input type.
Source§

impl From<ExprLambda> for Expr

Source§

fn from(value: ExprLambda) -> Self

Converts to this type from the input type.
Source§

impl From<ExprLambdaList> for Expr

Source§

fn from(value: ExprLambdaList) -> Self

Converts to this type from the input type.
Source§

impl From<ExprLambdaVariadic> for Expr

Source§

fn from(value: ExprLambdaVariadic) -> Self

Converts to this type from the input type.
Source§

impl From<ExprLiteral> for Expr

Source§

fn from(value: ExprLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<ExprNew> for Expr

Source§

fn from(value: ExprNew) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOp> for Expr

Source§

fn from(value: ExprOp) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBin> for Expr

Source§

fn from(value: ExprOpBin) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinAdj> for Expr

Source§

fn from(value: ExprOpBinAdj) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinIndex> for Expr

Source§

fn from(value: ExprOpBinIndex) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinMember> for Expr

Source§

fn from(value: ExprOpBinMember) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinMemberDot> for Expr

Source§

fn from(value: ExprOpBinMemberDot) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinMemberOptional> for Expr

Source§

fn from(value: ExprOpBinMemberOptional) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinRegular> for Expr

Source§

fn from(value: ExprOpBinRegular) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpPostfix> for Expr

Source§

fn from(value: ExprOpPostfix) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpPrefix> for Expr

Source§

fn from(value: ExprOpPrefix) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOption> for Expr

Source§

fn from(value: ExprOption) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfile> for Expr

Source§

fn from(value: ExprProfile) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileElapsedTime> for Expr

Source§

fn from(value: ExprProfileElapsedTime) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileElapsedTiming> for Expr

Source§

fn from(value: ExprProfileElapsedTiming) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileProfile> for Expr

Source§

fn from(value: ExprProfileProfile) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileTime> for Expr

Source§

fn from(value: ExprProfileTime) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileTiming> for Expr

Source§

fn from(value: ExprProfileTiming) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuote> for Expr

Source§

fn from(value: ExprQuote) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteGlobal> for Expr

Source§

fn from(value: ExprQuoteGlobal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteLocal> for Expr

Source§

fn from(value: ExprQuoteLocal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteSymbol> for Expr

Source§

fn from(value: ExprQuoteSymbol) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteThreadLocal> for Expr

Source§

fn from(value: ExprQuoteThreadLocal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteThreadVariable> for Expr

Source§

fn from(value: ExprQuoteThreadVariable) -> Self

Converts to this type from the input type.
Source§

impl From<ExprThrow> for Expr

Source§

fn from(value: ExprThrow) -> Self

Converts to this type from the input type.
Source§

impl From<ExprTrap> for Expr

Source§

fn from(value: ExprTrap) -> Self

Converts to this type from the input type.
Source§

impl From<ExprTry> for Expr

Source§

fn from(value: ExprTry) -> Self

Converts to this type from the input type.
Source§

impl From<ExprWhile> for Expr

Source§

fn from(value: ExprWhile) -> 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<Holder> for Expr

Source§

fn from(value: Holder) -> 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<List> for Expr

Source§

fn from(value: List) -> 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<Sequence> for Expr

Source§

fn from(value: Sequence) -> 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 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<N> Migrate<N> for Expr
where N: ExternalCstNode,

Source§

fn matches(node: &N) -> bool

Reports whether node can migrate this typed value.
Source§

fn migrate(node: N) -> Result<Self, MigrateError>

Converts a matching external node into typed syntax. Read more
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 Spanned for Expr

Source§

fn try_span(&self) -> Option<Span>

Returns the smallest span covering this value, when its constituents share one source snapshot.
Source§

fn span(&self) -> Span

Returns the smallest span covering this value. Read more
Source§

fn expect_span(&self) -> Span

Returns this value’s span when one source snapshot covers it. Read more

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, !>

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.