pub enum Component {
Expr(Box<Expr>),
Empty(Empty),
}Expand description
The typed Component syntax category.
Variants§
Trait Implementations§
Source§impl From<AdjacentExpr> for Component
impl From<AdjacentExpr> for Component
Source§fn from(value: AdjacentExpr) -> Self
fn from(value: AdjacentExpr) -> Self
Converts to this type from the input type.
Source§impl From<AngleBarList> for Component
impl From<AngleBarList> for Component
Source§fn from(value: AngleBarList) -> Self
fn from(value: AngleBarList) -> Self
Converts to this type from the input type.
Source§impl From<Assignment> for Component
impl From<Assignment> for Component
Source§fn from(value: Assignment) -> Self
fn from(value: Assignment) -> Self
Converts to this type from the input type.
Source§impl From<BinaryExpr> for Component
impl From<BinaryExpr> for Component
Source§fn from(value: BinaryExpr) -> Self
fn from(value: BinaryExpr) -> Self
Converts to this type from the input type.
Source§impl From<Collection> for Component
impl From<Collection> for Component
Source§fn from(value: Collection) -> Self
fn from(value: Collection) -> Self
Converts to this type from the input type.
Source§impl From<ContinueExpr> for Component
impl From<ContinueExpr> for Component
Source§fn from(value: ContinueExpr) -> Self
fn from(value: ContinueExpr) -> Self
Converts to this type from the input type.
Source§impl From<ControlFlow> for Component
impl From<ControlFlow> for Component
Source§fn from(value: ControlFlow) -> Self
fn from(value: ControlFlow) -> Self
Converts to this type from the input type.
Source§impl From<EvaluatedAssignment> for Component
impl From<EvaluatedAssignment> for Component
Source§fn from(value: EvaluatedAssignment) -> Self
fn from(value: EvaluatedAssignment) -> Self
Converts to this type from the input type.
Source§impl From<FloatLiteral> for Component
impl From<FloatLiteral> for Component
Source§fn from(value: FloatLiteral) -> Self
fn from(value: FloatLiteral) -> Self
Converts to this type from the input type.
Source§impl From<GlobalBinding> for Component
impl From<GlobalBinding> for Component
Source§fn from(value: GlobalBinding) -> Self
fn from(value: GlobalBinding) -> Self
Converts to this type from the input type.
Source§impl From<GlobalParallelAssignment> for Component
impl From<GlobalParallelAssignment> for Component
Source§fn from(value: GlobalParallelAssignment) -> Self
fn from(value: GlobalParallelAssignment) -> Self
Converts to this type from the input type.
Source§impl From<IfStatement> for Component
impl From<IfStatement> for Component
Source§fn from(value: IfStatement) -> Self
fn from(value: IfStatement) -> Self
Converts to this type from the input type.
Source§impl From<Installation> for Component
impl From<Installation> for Component
Source§fn from(value: Installation) -> Self
fn from(value: Installation) -> Self
Converts to this type from the input type.
Source§impl From<IntegerLiteral> for Component
impl From<IntegerLiteral> for Component
Source§fn from(value: IntegerLiteral) -> Self
fn from(value: IntegerLiteral) -> Self
Converts to this type from the input type.
Source§impl From<LambdaExpression> for Component
impl From<LambdaExpression> for Component
Source§fn from(value: LambdaExpression) -> Self
fn from(value: LambdaExpression) -> Self
Converts to this type from the input type.
Source§impl From<LocalBinding> for Component
impl From<LocalBinding> for Component
Source§fn from(value: LocalBinding) -> Self
fn from(value: LocalBinding) -> Self
Converts to this type from the input type.
Source§impl From<LocalParallelAssignment> for Component
impl From<LocalParallelAssignment> for Component
Source§fn from(value: LocalParallelAssignment) -> Self
fn from(value: LocalParallelAssignment) -> Self
Converts to this type from the input type.
Source§impl From<MethodInstallation> for Component
impl From<MethodInstallation> for Component
Source§fn from(value: MethodInstallation) -> Self
fn from(value: MethodInstallation) -> Self
Converts to this type from the input type.
Source§impl From<NewInstallation> for Component
impl From<NewInstallation> for Component
Source§fn from(value: NewInstallation) -> Self
fn from(value: NewInstallation) -> Self
Converts to this type from the input type.
Source§impl From<NewStatement> for Component
impl From<NewStatement> for Component
Source§fn from(value: NewStatement) -> Self
fn from(value: NewStatement) -> Self
Converts to this type from the input type.
Source§impl From<OperatorAssignment> for Component
impl From<OperatorAssignment> for Component
Source§fn from(value: OperatorAssignment) -> Self
fn from(value: OperatorAssignment) -> Self
Converts to this type from the input type.
Source§impl From<OperatorExpr> for Component
impl From<OperatorExpr> for Component
Source§fn from(value: OperatorExpr) -> Self
fn from(value: OperatorExpr) -> Self
Converts to this type from the input type.
Source§impl From<OperatorInstallation> for Component
impl From<OperatorInstallation> for Component
Source§fn from(value: OperatorInstallation) -> Self
fn from(value: OperatorInstallation) -> Self
Converts to this type from the input type.
Source§impl From<OptionExpression> for Component
impl From<OptionExpression> for Component
Source§fn from(value: OptionExpression) -> Self
fn from(value: OptionExpression) -> Self
Converts to this type from the input type.
Source§impl From<ParallelAssignment> for Component
impl From<ParallelAssignment> for Component
Source§fn from(value: ParallelAssignment) -> Self
fn from(value: ParallelAssignment) -> Self
Converts to this type from the input type.
Source§impl From<PostfixExpr> for Component
impl From<PostfixExpr> for Component
Source§fn from(value: PostfixExpr) -> Self
fn from(value: PostfixExpr) -> Self
Converts to this type from the input type.
Source§impl From<PrefixExpr> for Component
impl From<PrefixExpr> for Component
Source§fn from(value: PrefixExpr) -> Self
fn from(value: PrefixExpr) -> Self
Converts to this type from the input type.
Source§impl From<ProfilingExpr> for Component
impl From<ProfilingExpr> for Component
Source§fn from(value: ProfilingExpr) -> Self
fn from(value: ProfilingExpr) -> Self
Converts to this type from the input type.
Source§impl From<QuoteExpression> for Component
impl From<QuoteExpression> for Component
Source§fn from(value: QuoteExpression) -> Self
fn from(value: QuoteExpression) -> Self
Converts to this type from the input type.
Source§impl From<RawStringLiteral> for Component
impl From<RawStringLiteral> for Component
Source§fn from(value: RawStringLiteral) -> Self
fn from(value: RawStringLiteral) -> Self
Converts to this type from the input type.
Source§impl From<ReturnExpr> for Component
impl From<ReturnExpr> for Component
Source§fn from(value: ReturnExpr) -> Self
fn from(value: ReturnExpr) -> Self
Converts to this type from the input type.
Source§impl From<SimpleBinding> for Component
impl From<SimpleBinding> for Component
Source§fn from(value: SimpleBinding) -> Self
fn from(value: SimpleBinding) -> Self
Converts to this type from the input type.
Source§impl From<StringLiteral> for Component
impl From<StringLiteral> for Component
Source§fn from(value: StringLiteral) -> Self
fn from(value: StringLiteral) -> Self
Converts to this type from the input type.
Source§impl From<TryStatement> for Component
impl From<TryStatement> for Component
Source§fn from(value: TryStatement) -> Self
fn from(value: TryStatement) -> Self
Converts to this type from the input type.
Source§impl Lex for Component
impl Lex for Component
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 Componentwhere
N: ExternalCstNode,
impl<N> Migrate<N> for Componentwhere
N: ExternalCstNode,
Source§impl PrettyTree for Component
impl PrettyTree for Component
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 Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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