Skip to main content

PackedContent

Enum PackedContent 

Source
pub enum PackedContent {
    Expr(Box<Expr>),
    Pack(ExprPack),
}
Expand description

Enum generated by strutuct! for PackedContent.

Variants§

§

Expr(Box<Expr>)

Variant PackedContent::Expr generated by strutuct!.

§

Pack(ExprPack)

Variant PackedContent::Pack generated by strutuct!.

Trait Implementations§

Source§

impl Debug for PackedContent

Source§

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

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

impl From<AngleBarList> for PackedContent

Source§

fn from(value: AngleBarList) -> Self

Converts to this type from the input type.
Source§

impl From<Array> for PackedContent

Source§

fn from(value: Array) -> 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 PackedContent

Source§

fn from(value: ExprAssign) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignAugmented> for PackedContent

Source§

fn from(value: ExprAssignAugmented) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignEvaluated> for PackedContent

Source§

fn from(value: ExprAssignEvaluated) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignInstall> for PackedContent

Source§

fn from(value: ExprAssignInstall) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignInstallMethod> for PackedContent

Source§

fn from(value: ExprAssignInstallMethod) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignInstallNew> for PackedContent

Source§

fn from(value: ExprAssignInstallNew) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignInstallOp> for PackedContent

Source§

fn from(value: ExprAssignInstallOp) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignOp> for PackedContent

Source§

fn from(value: ExprAssignOp) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignParallel> for PackedContent

Source§

fn from(value: ExprAssignParallel) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignParallelGlobal> for PackedContent

Source§

fn from(value: ExprAssignParallelGlobal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignParallelLocal> for PackedContent

Source§

fn from(value: ExprAssignParallelLocal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignSimple> for PackedContent

Source§

fn from(value: ExprAssignSimple) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignSimpleGlobal> for PackedContent

Source§

fn from(value: ExprAssignSimpleGlobal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprAssignSimpleLocal> for PackedContent

Source§

fn from(value: ExprAssignSimpleLocal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprCatch> for PackedContent

Source§

fn from(value: ExprCatch) -> Self

Converts to this type from the input type.
Source§

impl From<ExprCollection> for PackedContent

Source§

fn from(value: ExprCollection) -> Self

Converts to this type from the input type.
Source§

impl From<ExprControl> for PackedContent

Source§

fn from(value: ExprControl) -> Self

Converts to this type from the input type.
Source§

impl From<ExprControlBreak> for PackedContent

Source§

fn from(value: ExprControlBreak) -> Self

Converts to this type from the input type.
Source§

impl From<ExprControlContinue> for PackedContent

Source§

fn from(value: ExprControlContinue) -> Self

Converts to this type from the input type.
Source§

impl From<ExprControlReturn> for PackedContent

Source§

fn from(value: ExprControlReturn) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebug> for PackedContent

Source§

fn from(value: ExprDebug) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugBreakpoint> for PackedContent

Source§

fn from(value: ExprDebugBreakpoint) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugFinish> for PackedContent

Source§

fn from(value: ExprDebugFinish) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugShield> for PackedContent

Source§

fn from(value: ExprDebugShield) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugStep> for PackedContent

Source§

fn from(value: ExprDebugStep) -> Self

Converts to this type from the input type.
Source§

impl From<ExprDebugTest> for PackedContent

Source§

fn from(value: ExprDebugTest) -> Self

Converts to this type from the input type.
Source§

impl From<ExprFor> for PackedContent

Source§

fn from(value: ExprFor) -> Self

Converts to this type from the input type.
Source§

impl From<ExprForBare> for PackedContent

Source§

fn from(value: ExprForBare) -> Self

Converts to this type from the input type.
Source§

impl From<ExprForIn> for PackedContent

Source§

fn from(value: ExprForIn) -> Self

Converts to this type from the input type.
Source§

impl From<ExprForRange> for PackedContent

Source§

fn from(value: ExprForRange) -> Self

Converts to this type from the input type.
Source§

impl From<ExprIf> for PackedContent

Source§

fn from(value: ExprIf) -> Self

Converts to this type from the input type.
Source§

impl From<ExprLambda> for PackedContent

Source§

fn from(value: ExprLambda) -> Self

Converts to this type from the input type.
Source§

impl From<ExprLambdaList> for PackedContent

Source§

fn from(value: ExprLambdaList) -> Self

Converts to this type from the input type.
Source§

impl From<ExprLambdaVariadic> for PackedContent

Source§

fn from(value: ExprLambdaVariadic) -> Self

Converts to this type from the input type.
Source§

impl From<ExprLiteral> for PackedContent

Source§

fn from(value: ExprLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<ExprNew> for PackedContent

Source§

fn from(value: ExprNew) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOp> for PackedContent

Source§

fn from(value: ExprOp) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBin> for PackedContent

Source§

fn from(value: ExprOpBin) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinAdj> for PackedContent

Source§

fn from(value: ExprOpBinAdj) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinIndex> for PackedContent

Source§

fn from(value: ExprOpBinIndex) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinMember> for PackedContent

Source§

fn from(value: ExprOpBinMember) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinMemberDot> for PackedContent

Source§

fn from(value: ExprOpBinMemberDot) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinMemberOptional> for PackedContent

Source§

fn from(value: ExprOpBinMemberOptional) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpBinRegular> for PackedContent

Source§

fn from(value: ExprOpBinRegular) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpPostfix> for PackedContent

Source§

fn from(value: ExprOpPostfix) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOpPrefix> for PackedContent

Source§

fn from(value: ExprOpPrefix) -> Self

Converts to this type from the input type.
Source§

impl From<ExprOption> for PackedContent

Source§

fn from(value: ExprOption) -> Self

Converts to this type from the input type.
Source§

impl From<ExprPack> for PackedContent

Source§

fn from(value: ExprPack) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfile> for PackedContent

Source§

fn from(value: ExprProfile) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileElapsedTime> for PackedContent

Source§

fn from(value: ExprProfileElapsedTime) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileElapsedTiming> for PackedContent

Source§

fn from(value: ExprProfileElapsedTiming) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileProfile> for PackedContent

Source§

fn from(value: ExprProfileProfile) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileTime> for PackedContent

Source§

fn from(value: ExprProfileTime) -> Self

Converts to this type from the input type.
Source§

impl From<ExprProfileTiming> for PackedContent

Source§

fn from(value: ExprProfileTiming) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuote> for PackedContent

Source§

fn from(value: ExprQuote) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteGlobal> for PackedContent

Source§

fn from(value: ExprQuoteGlobal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteLocal> for PackedContent

Source§

fn from(value: ExprQuoteLocal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteSymbol> for PackedContent

Source§

fn from(value: ExprQuoteSymbol) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteThreadLocal> for PackedContent

Source§

fn from(value: ExprQuoteThreadLocal) -> Self

Converts to this type from the input type.
Source§

impl From<ExprQuoteThreadVariable> for PackedContent

Source§

fn from(value: ExprQuoteThreadVariable) -> Self

Converts to this type from the input type.
Source§

impl From<ExprThrow> for PackedContent

Source§

fn from(value: ExprThrow) -> Self

Converts to this type from the input type.
Source§

impl From<ExprTrap> for PackedContent

Source§

fn from(value: ExprTrap) -> Self

Converts to this type from the input type.
Source§

impl From<ExprTry> for PackedContent

Source§

fn from(value: ExprTry) -> Self

Converts to this type from the input type.
Source§

impl From<ExprWhile> for PackedContent

Source§

fn from(value: ExprWhile) -> Self

Converts to this type from the input type.
Source§

impl From<FloatLiteral> for PackedContent

Source§

fn from(value: FloatLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<Holder> for PackedContent

Source§

fn from(value: Holder) -> Self

Converts to this type from the input type.
Source§

impl From<IntegerLiteral> for PackedContent

Source§

fn from(value: IntegerLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<List> for PackedContent

Source§

fn from(value: List) -> Self

Converts to this type from the input type.
Source§

impl From<RawStringLiteral> for PackedContent

Source§

fn from(value: RawStringLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<Sequence> for PackedContent

Source§

fn from(value: Sequence) -> Self

Converts to this type from the input type.
Source§

impl From<StringLiteral> for PackedContent

Source§

fn from(value: StringLiteral) -> Self

Converts to this type from the input type.
Source§

impl From<Symbol> for PackedContent

Source§

fn from(value: Symbol) -> Self

Converts to this type from the input type.
Source§

impl Lex for PackedContent

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 PackedContent
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 PackedContent

Source§

fn pretty_tree(&self) -> PrettyNode

Builds the presentation node for this syntax value.
Source§

impl Spanned for PackedContent

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.