Skip to main content

Component

Enum Component 

Source
pub enum Component {
    Expr(Box<Expr>),
    Empty(Empty),
}
Expand description

Enum generated by strutuct! for Component.

Variants§

§

Expr(Box<Expr>)

Variant Component::Expr generated by strutuct!.

§

Empty(Empty)

Variant Component::Empty generated by strutuct!.

Trait Implementations§

Source§

impl Debug for Component

Source§

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

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

impl From<AngleBarList> for Component

Source§

fn from(value: AngleBarList) -> Self

Converts to this type from the input type.
Source§

impl From<Array> for Component

Source§

fn from(value: Array) -> Self

Converts to this type from the input type.
Source§

impl From<Empty> for Component

Source§

fn from(value: Empty) -> 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<ExprAssign> for Component

Source§

fn from(value: ExprAssign) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignAugmented> for Component

Source§

fn from(value: ExprAssignAugmented) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignEvaluated> for Component

Source§

fn from(value: ExprAssignEvaluated) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignInstall> for Component

Source§

fn from(value: ExprAssignInstall) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignInstallMethod> for Component

Source§

fn from(value: ExprAssignInstallMethod) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignInstallNew> for Component

Source§

fn from(value: ExprAssignInstallNew) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignInstallOp> for Component

Source§

fn from(value: ExprAssignInstallOp) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignOp> for Component

Source§

fn from(value: ExprAssignOp) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignParallel> for Component

Source§

fn from(value: ExprAssignParallel) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignParallelGlobal> for Component

Source§

fn from(value: ExprAssignParallelGlobal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignParallelLocal> for Component

Source§

fn from(value: ExprAssignParallelLocal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignSimple> for Component

Source§

fn from(value: ExprAssignSimple) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignSimpleGlobal> for Component

Source§

fn from(value: ExprAssignSimpleGlobal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignSimpleLocal> for Component

Source§

fn from(value: ExprAssignSimpleLocal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprCatch> for Component

Source§

fn from(value: ExprCatch) -> Self

Converts to this type from the input type.
Source§

impl From<ExprCollection> for Component

Source§

fn from(value: ExprCollection) -> Self

Converts to this type from the input type.
Source§

impl From<ExprControl> for Component

Source§

fn from(value: ExprControl) -> Self

Converts to this type from the input type.
Source§

impl From<ExprControlBreak> for Component

Source§

fn from(value: ExprControlBreak) -> Self

Converts to this type from the input type.
Source§

impl From<ExprControlContinue> for Component

Source§

fn from(value: ExprControlContinue) -> Self

Converts to this type from the input type.
Source§

impl From<ExprControlReturn> for Component

Source§

fn from(value: ExprControlReturn) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebug> for Component

Source§

fn from(value: ExprDebug) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugBreakpoint> for Component

Source§

fn from(value: ExprDebugBreakpoint) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugFinish> for Component

Source§

fn from(value: ExprDebugFinish) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugShield> for Component

Source§

fn from(value: ExprDebugShield) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugStep> for Component

Source§

fn from(value: ExprDebugStep) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugTest> for Component

Source§

fn from(value: ExprDebugTest) -> Self

Converts to this type from the input type.
Source§

impl From<ExprFor> for Component

Source§

fn from(value: ExprFor) -> Self

Converts to this type from the input type.
Source§

impl From<ExprForBare> for Component

Source§

fn from(value: ExprForBare) -> Self

Converts to this type from the input type.
Source§

impl From<ExprForIn> for Component

Source§

fn from(value: ExprForIn) -> Self

Converts to this type from the input type.
Source§

impl From<ExprForRange> for Component

Source§

fn from(value: ExprForRange) -> Self

Converts to this type from the input type.
Source§

impl From<ExprIf> for Component

Source§

fn from(value: ExprIf) -> Self

Converts to this type from the input type.
Source§

impl From<ExprLambda> for Component

Source§

fn from(value: ExprLambda) -> Self

Converts to this type from the input type.
Source§

impl From<ExprLambdaList> for Component

Source§

fn from(value: ExprLambdaList) -> Self

Converts to this type from the input type.
Source§

impl From<ExprLambdaVariadic> for Component

Source§

fn from(value: ExprLambdaVariadic) -> Self

Converts to this type from the input type.
Source§

impl From<ExprLiteral> for Component

Source§

fn from(value: ExprLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<ExprNew> for Component

Source§

fn from(value: ExprNew) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOp> for Component

Source§

fn from(value: ExprOp) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBin> for Component

Source§

fn from(value: ExprOpBin) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinAdj> for Component

Source§

fn from(value: ExprOpBinAdj) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinIndex> for Component

Source§

fn from(value: ExprOpBinIndex) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinMember> for Component

Source§

fn from(value: ExprOpBinMember) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinMemberDot> for Component

Source§

fn from(value: ExprOpBinMemberDot) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinMemberOptional> for Component

Source§

fn from(value: ExprOpBinMemberOptional) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinRegular> for Component

Source§

fn from(value: ExprOpBinRegular) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpPostfix> for Component

Source§

fn from(value: ExprOpPostfix) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpPrefix> for Component

Source§

fn from(value: ExprOpPrefix) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOption> for Component

Source§

fn from(value: ExprOption) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfile> for Component

Source§

fn from(value: ExprProfile) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileElapsedTime> for Component

Source§

fn from(value: ExprProfileElapsedTime) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileElapsedTiming> for Component

Source§

fn from(value: ExprProfileElapsedTiming) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileProfile> for Component

Source§

fn from(value: ExprProfileProfile) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileTime> for Component

Source§

fn from(value: ExprProfileTime) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileTiming> for Component

Source§

fn from(value: ExprProfileTiming) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuote> for Component

Source§

fn from(value: ExprQuote) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteGlobal> for Component

Source§

fn from(value: ExprQuoteGlobal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteLocal> for Component

Source§

fn from(value: ExprQuoteLocal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteSymbol> for Component

Source§

fn from(value: ExprQuoteSymbol) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteThreadLocal> for Component

Source§

fn from(value: ExprQuoteThreadLocal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteThreadVariable> for Component

Source§

fn from(value: ExprQuoteThreadVariable) -> Self

Converts to this type from the input type.
Source§

impl From<ExprThrow> for Component

Source§

fn from(value: ExprThrow) -> Self

Converts to this type from the input type.
Source§

impl From<ExprTrap> for Component

Source§

fn from(value: ExprTrap) -> Self

Converts to this type from the input type.
Source§

impl From<ExprTry> for Component

Source§

fn from(value: ExprTry) -> Self

Converts to this type from the input type.
Source§

impl From<ExprWhile> for Component

Source§

fn from(value: ExprWhile) -> Self

Converts to this type from the input type.
Source§

impl From<FloatLiteral> for Component

Source§

fn from(value: FloatLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<Holder> for Component

Source§

fn from(value: Holder) -> Self

Converts to this type from the input type.
Source§

impl From<IntegerLiteral> for Component

Source§

fn from(value: IntegerLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<List> for Component

Source§

fn from(value: List) -> Self

Converts to this type from the input type.
Source§

impl From<RawStringLiteral> for Component

Source§

fn from(value: RawStringLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<Sequence> for Component

Source§

fn from(value: Sequence) -> Self

Converts to this type from the input type.
Source§

impl From<StringLiteral> for Component

Source§

fn from(value: StringLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<Symbol> for Component

Source§

fn from(value: Symbol) -> Self

Converts to this type from the input type.
Source§

impl Lex for Component

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

Source§

fn pretty_tree(&self) -> PrettyNode

Builds the presentation node for this syntax value.
Source§

impl Spanned for Component

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§

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.