pub enum Component {
EmptyComponent(EmptyComponent),
Expr(Expr),
}Variants§
EmptyComponent(EmptyComponent)
Expr(Expr)
Trait Implementations§
Source§impl From<AdjacentExpression> for Component
impl From<AdjacentExpression> for Component
Source§fn from(value: AdjacentExpression) -> Self
fn from(value: AdjacentExpression) -> 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<AssignmentExpr> for Component
impl From<AssignmentExpr> for Component
Source§fn from(value: AssignmentExpr) -> Self
fn from(value: AssignmentExpr) -> Self
Converts to this type from the input type.
Source§impl From<BinaryAssignment> for Component
impl From<BinaryAssignment> for Component
Source§fn from(value: BinaryAssignment) -> Self
fn from(value: BinaryAssignment) -> Self
Converts to this type from the input type.
Source§impl From<BinaryExpression> for Component
impl From<BinaryExpression> for Component
Source§fn from(value: BinaryExpression) -> Self
fn from(value: BinaryExpression) -> Self
Converts to this type from the input type.
Source§impl From<BinaryInstallation> for Component
impl From<BinaryInstallation> for Component
Source§fn from(value: BinaryInstallation) -> Self
fn from(value: BinaryInstallation) -> Self
Converts to this type from the input type.
Source§impl From<BreakStatement> for Component
impl From<BreakStatement> for Component
Source§fn from(value: BreakStatement) -> Self
fn from(value: BreakStatement) -> Self
Converts to this type from the input type.
Source§impl From<CatchStatement> for Component
impl From<CatchStatement> for Component
Source§fn from(value: CatchStatement) -> Self
fn from(value: CatchStatement) -> 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<Component> for SequenceElement
impl From<Component> for SequenceElement
Source§impl From<ContinueStatement> for Component
impl From<ContinueStatement> for Component
Source§fn from(value: ContinueStatement) -> Self
fn from(value: ContinueStatement) -> Self
Converts to this type from the input type.
Source§impl From<DebugClause> for Component
impl From<DebugClause> for Component
Source§fn from(value: DebugClause) -> Self
fn from(value: DebugClause) -> Self
Converts to this type from the input type.
Source§impl From<EmptyComponent> for Component
impl From<EmptyComponent> for Component
Source§fn from(value: EmptyComponent) -> Self
fn from(value: EmptyComponent) -> 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<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<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<LocalAssignment> for Component
impl From<LocalAssignment> for Component
Source§fn from(value: LocalAssignment) -> Self
fn from(value: LocalAssignment) -> Self
Converts to this type from the input type.
Source§impl From<LocalStructuredBinding> for Component
impl From<LocalStructuredBinding> for Component
Source§fn from(value: LocalStructuredBinding) -> Self
fn from(value: LocalStructuredBinding) -> 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<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<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<ParenthesizedExpression> for Component
impl From<ParenthesizedExpression> for Component
Source§fn from(value: ParenthesizedExpression) -> Self
fn from(value: ParenthesizedExpression) -> Self
Converts to this type from the input type.
Source§impl From<PostfixAssignment> for Component
impl From<PostfixAssignment> for Component
Source§fn from(value: PostfixAssignment) -> Self
fn from(value: PostfixAssignment) -> Self
Converts to this type from the input type.
Source§impl From<PostfixExpression> for Component
impl From<PostfixExpression> for Component
Source§fn from(value: PostfixExpression) -> Self
fn from(value: PostfixExpression) -> Self
Converts to this type from the input type.
Source§impl From<PostfixInstallation> for Component
impl From<PostfixInstallation> for Component
Source§fn from(value: PostfixInstallation) -> Self
fn from(value: PostfixInstallation) -> Self
Converts to this type from the input type.
Source§impl From<PrefixAssignment> for Component
impl From<PrefixAssignment> for Component
Source§fn from(value: PrefixAssignment) -> Self
fn from(value: PrefixAssignment) -> Self
Converts to this type from the input type.
Source§impl From<PrefixExpression> for Component
impl From<PrefixExpression> for Component
Source§fn from(value: PrefixExpression) -> Self
fn from(value: PrefixExpression) -> Self
Converts to this type from the input type.
Source§impl From<PrefixInstallation> for Component
impl From<PrefixInstallation> for Component
Source§fn from(value: PrefixInstallation) -> Self
fn from(value: PrefixInstallation) -> 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<ReturnStatement> for Component
impl From<ReturnStatement> for Component
Source§fn from(value: ReturnStatement) -> Self
fn from(value: ReturnStatement) -> 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<StructuredBinding> for Component
impl From<StructuredBinding> for Component
Source§fn from(value: StructuredBinding) -> Self
fn from(value: StructuredBinding) -> Self
Converts to this type from the input type.
Source§impl From<ThrowStatement> for Component
impl From<ThrowStatement> for Component
Source§fn from(value: ThrowStatement) -> Self
fn from(value: ThrowStatement) -> Self
Converts to this type from the input type.
Source§impl From<TrapStatement> for Component
impl From<TrapStatement> for Component
Source§fn from(value: TrapStatement) -> Self
fn from(value: TrapStatement) -> 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 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.
Source§impl<N> Reconstruct<N> for Componentwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for Componentwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
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