pub enum SyntaxNode {
SourceFile(SourceFile),
AnyCell(AnyCell),
Expr(Expr),
}Variants§
Trait Implementations§
Source§impl Debug for SyntaxNode
impl Debug for SyntaxNode
Source§impl From<AdjacentExpression> for SyntaxNode
impl From<AdjacentExpression> for SyntaxNode
Source§fn from(value: AdjacentExpression) -> Self
fn from(value: AdjacentExpression) -> Self
Converts to this type from the input type.
Source§impl From<AngleBarList> for SyntaxNode
impl From<AngleBarList> for SyntaxNode
Source§fn from(value: AngleBarList) -> Self
fn from(value: AngleBarList) -> Self
Converts to this type from the input type.
Source§impl From<AnyCell> for SyntaxNode
impl From<AnyCell> for SyntaxNode
Source§impl From<Array> for SyntaxNode
impl From<Array> for SyntaxNode
Source§impl From<Assignment> for SyntaxNode
impl From<Assignment> for SyntaxNode
Source§fn from(value: Assignment) -> Self
fn from(value: Assignment) -> Self
Converts to this type from the input type.
Source§impl From<AssignmentExpr> for SyntaxNode
impl From<AssignmentExpr> for SyntaxNode
Source§fn from(value: AssignmentExpr) -> Self
fn from(value: AssignmentExpr) -> Self
Converts to this type from the input type.
Source§impl From<BinaryAssignment> for SyntaxNode
impl From<BinaryAssignment> for SyntaxNode
Source§fn from(value: BinaryAssignment) -> Self
fn from(value: BinaryAssignment) -> Self
Converts to this type from the input type.
Source§impl From<BinaryExpression> for SyntaxNode
impl From<BinaryExpression> for SyntaxNode
Source§fn from(value: BinaryExpression) -> Self
fn from(value: BinaryExpression) -> Self
Converts to this type from the input type.
Source§impl From<BinaryInstallation> for SyntaxNode
impl From<BinaryInstallation> for SyntaxNode
Source§fn from(value: BinaryInstallation) -> Self
fn from(value: BinaryInstallation) -> Self
Converts to this type from the input type.
Source§impl From<BreakStatement> for SyntaxNode
impl From<BreakStatement> for SyntaxNode
Source§fn from(value: BreakStatement) -> Self
fn from(value: BreakStatement) -> Self
Converts to this type from the input type.
Source§impl From<CatchStatement> for SyntaxNode
impl From<CatchStatement> for SyntaxNode
Source§fn from(value: CatchStatement) -> Self
fn from(value: CatchStatement) -> Self
Converts to this type from the input type.
Source§impl From<Collection> for SyntaxNode
impl From<Collection> for SyntaxNode
Source§fn from(value: Collection) -> Self
fn from(value: Collection) -> Self
Converts to this type from the input type.
Source§impl From<ContinueStatement> for SyntaxNode
impl From<ContinueStatement> for SyntaxNode
Source§fn from(value: ContinueStatement) -> Self
fn from(value: ContinueStatement) -> Self
Converts to this type from the input type.
Source§impl From<DebugClause> for SyntaxNode
impl From<DebugClause> for SyntaxNode
Source§fn from(value: DebugClause) -> Self
fn from(value: DebugClause) -> Self
Converts to this type from the input type.
Source§impl From<EvaluatedAssignment> for SyntaxNode
impl From<EvaluatedAssignment> for SyntaxNode
Source§fn from(value: EvaluatedAssignment) -> Self
fn from(value: EvaluatedAssignment) -> Self
Converts to this type from the input type.
Source§impl From<Expr> for SyntaxNode
impl From<Expr> for SyntaxNode
Source§impl From<ExpressionCell> for SyntaxNode
impl From<ExpressionCell> for SyntaxNode
Source§fn from(value: ExpressionCell) -> Self
fn from(value: ExpressionCell) -> Self
Converts to this type from the input type.
Source§impl From<FloatLiteral> for SyntaxNode
impl From<FloatLiteral> for SyntaxNode
Source§fn from(value: FloatLiteral) -> Self
fn from(value: FloatLiteral) -> Self
Converts to this type from the input type.
Source§impl From<ForLoop> for SyntaxNode
impl From<ForLoop> for SyntaxNode
Source§impl From<IfStatement> for SyntaxNode
impl From<IfStatement> for SyntaxNode
Source§fn from(value: IfStatement) -> Self
fn from(value: IfStatement) -> Self
Converts to this type from the input type.
Source§impl From<IntegerLiteral> for SyntaxNode
impl From<IntegerLiteral> for SyntaxNode
Source§fn from(value: IntegerLiteral) -> Self
fn from(value: IntegerLiteral) -> Self
Converts to this type from the input type.
Source§impl From<LambdaExpression> for SyntaxNode
impl From<LambdaExpression> for SyntaxNode
Source§fn from(value: LambdaExpression) -> Self
fn from(value: LambdaExpression) -> Self
Converts to this type from the input type.
Source§impl From<List> for SyntaxNode
impl From<List> for SyntaxNode
Source§impl From<LocalAssignment> for SyntaxNode
impl From<LocalAssignment> for SyntaxNode
Source§fn from(value: LocalAssignment) -> Self
fn from(value: LocalAssignment) -> Self
Converts to this type from the input type.
Source§impl From<LocalStructuredBinding> for SyntaxNode
impl From<LocalStructuredBinding> for SyntaxNode
Source§fn from(value: LocalStructuredBinding) -> Self
fn from(value: LocalStructuredBinding) -> Self
Converts to this type from the input type.
Source§impl From<MutedCell> for SyntaxNode
impl From<MutedCell> for SyntaxNode
Source§impl From<NewStatement> for SyntaxNode
impl From<NewStatement> for SyntaxNode
Source§fn from(value: NewStatement) -> Self
fn from(value: NewStatement) -> Self
Converts to this type from the input type.
Source§impl From<OperatorExpr> for SyntaxNode
impl From<OperatorExpr> for SyntaxNode
Source§fn from(value: OperatorExpr) -> Self
fn from(value: OperatorExpr) -> Self
Converts to this type from the input type.
Source§impl From<OptionExpression> for SyntaxNode
impl From<OptionExpression> for SyntaxNode
Source§fn from(value: OptionExpression) -> Self
fn from(value: OptionExpression) -> Self
Converts to this type from the input type.
Source§impl From<ParenthesizedExpression> for SyntaxNode
impl From<ParenthesizedExpression> for SyntaxNode
Source§fn from(value: ParenthesizedExpression) -> Self
fn from(value: ParenthesizedExpression) -> Self
Converts to this type from the input type.
Source§impl From<PostfixAssignment> for SyntaxNode
impl From<PostfixAssignment> for SyntaxNode
Source§fn from(value: PostfixAssignment) -> Self
fn from(value: PostfixAssignment) -> Self
Converts to this type from the input type.
Source§impl From<PostfixExpression> for SyntaxNode
impl From<PostfixExpression> for SyntaxNode
Source§fn from(value: PostfixExpression) -> Self
fn from(value: PostfixExpression) -> Self
Converts to this type from the input type.
Source§impl From<PostfixInstallation> for SyntaxNode
impl From<PostfixInstallation> for SyntaxNode
Source§fn from(value: PostfixInstallation) -> Self
fn from(value: PostfixInstallation) -> Self
Converts to this type from the input type.
Source§impl From<PrefixAssignment> for SyntaxNode
impl From<PrefixAssignment> for SyntaxNode
Source§fn from(value: PrefixAssignment) -> Self
fn from(value: PrefixAssignment) -> Self
Converts to this type from the input type.
Source§impl From<PrefixExpression> for SyntaxNode
impl From<PrefixExpression> for SyntaxNode
Source§fn from(value: PrefixExpression) -> Self
fn from(value: PrefixExpression) -> Self
Converts to this type from the input type.
Source§impl From<PrefixInstallation> for SyntaxNode
impl From<PrefixInstallation> for SyntaxNode
Source§fn from(value: PrefixInstallation) -> Self
fn from(value: PrefixInstallation) -> Self
Converts to this type from the input type.
Source§impl From<QuoteExpression> for SyntaxNode
impl From<QuoteExpression> for SyntaxNode
Source§fn from(value: QuoteExpression) -> Self
fn from(value: QuoteExpression) -> Self
Converts to this type from the input type.
Source§impl From<RawStringLiteral> for SyntaxNode
impl From<RawStringLiteral> for SyntaxNode
Source§fn from(value: RawStringLiteral) -> Self
fn from(value: RawStringLiteral) -> Self
Converts to this type from the input type.
Source§impl From<ReturnStatement> for SyntaxNode
impl From<ReturnStatement> for SyntaxNode
Source§fn from(value: ReturnStatement) -> Self
fn from(value: ReturnStatement) -> Self
Converts to this type from the input type.
Source§impl From<Sequence> for SyntaxNode
impl From<Sequence> for SyntaxNode
Source§impl From<SequenceCell> for SyntaxNode
impl From<SequenceCell> for SyntaxNode
Source§fn from(value: SequenceCell) -> Self
fn from(value: SequenceCell) -> Self
Converts to this type from the input type.
Source§impl From<SourceFile> for SyntaxNode
impl From<SourceFile> for SyntaxNode
Source§fn from(value: SourceFile) -> Self
fn from(value: SourceFile) -> Self
Converts to this type from the input type.
Source§impl From<StringLiteral> for SyntaxNode
impl From<StringLiteral> for SyntaxNode
Source§fn from(value: StringLiteral) -> Self
fn from(value: StringLiteral) -> Self
Converts to this type from the input type.
Source§impl From<StructuredBinding> for SyntaxNode
impl From<StructuredBinding> for SyntaxNode
Source§fn from(value: StructuredBinding) -> Self
fn from(value: StructuredBinding) -> Self
Converts to this type from the input type.
Source§impl From<Symbol> for SyntaxNode
impl From<Symbol> for SyntaxNode
Source§impl From<ThrowStatement> for SyntaxNode
impl From<ThrowStatement> for SyntaxNode
Source§fn from(value: ThrowStatement) -> Self
fn from(value: ThrowStatement) -> Self
Converts to this type from the input type.
Source§impl From<TrapStatement> for SyntaxNode
impl From<TrapStatement> for SyntaxNode
Source§fn from(value: TrapStatement) -> Self
fn from(value: TrapStatement) -> Self
Converts to this type from the input type.
Source§impl From<TryStatement> for SyntaxNode
impl From<TryStatement> for SyntaxNode
Source§fn from(value: TryStatement) -> Self
fn from(value: TryStatement) -> Self
Converts to this type from the input type.
Source§impl From<WhileLoop> for SyntaxNode
impl From<WhileLoop> for SyntaxNode
Source§impl PrettyTree for SyntaxNode
impl PrettyTree for SyntaxNode
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 SyntaxNodewhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for SyntaxNodewhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToCells for SyntaxNode
impl ToCells for SyntaxNode
Source§fn to_cells(&self, output: &mut CellStream)
fn to_cells(&self, output: &mut CellStream)
Appends this value’s global cells to
output.Source§fn to_cell_stream(&self, source_id: SourceId) -> CellStream
fn to_cell_stream(&self, source_id: SourceId) -> CellStream
Emits this value into a fresh cell stream with the requested identity.
Source§impl ToTokens for SyntaxNode
impl ToTokens for SyntaxNode
Auto Trait Implementations§
impl Freeze for SyntaxNode
impl RefUnwindSafe for SyntaxNode
impl Send for SyntaxNode
impl Sync for SyntaxNode
impl Unpin for SyntaxNode
impl UnsafeUnpin for SyntaxNode
impl UnwindSafe for SyntaxNode
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