Skip to main content

Reconstruct

Trait Reconstruct 

Source
pub trait Reconstruct<N: ExternalCstNode>: Sized {
    // Required methods
    fn matches(node: &N) -> bool;
    fn reconstruct(node: N) -> Result<Self, ReconstructError>;
}
Expand description

Reconstructs one typed value from a parser backend’s untyped CST node.

Required Methods§

Source

fn matches(node: &N) -> bool

Source

fn reconstruct(node: N) -> Result<Self, ReconstructError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<N> Reconstruct<N> for AdjacentExpression
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for AngleBarList
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for AnyCell
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for Array
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for Assignment
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for AssignmentExpr
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for BinaryAssignment
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for BinaryExpression
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for BinaryInstallation
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for BinaryOperator
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for BindingPack
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for BlockComment
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for BreakStatement
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for CatchStatement
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for Collection
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for Component
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for ContinueStatement
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for DebugClause
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for DebugKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for ElseClause
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for EmptyComponent
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for EscapeSequence
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for EvaluatedAssignment
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for ExceptClause
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for Expr
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for ExpressionCell
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for FloatLiteral
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for ForLoop
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for IfStatement
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for IntegerLiteral
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for IterationRange
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for LambdaExpression
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for LambdaParameters
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for LineComment
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for List
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for LocalAssignment
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for LocalStructuredBinding
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for LoopBody
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for MutedCell
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for MutedGroup
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for NakedSequence
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for NewStatement
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for OperatorExpr
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for OptionExpression
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for ParenthesizedExpression
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for PostfixAssignment
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for PostfixExpression
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for PostfixInstallation
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for PostfixOperator
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for PrefixAssignment
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for PrefixExpression
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for PrefixInstallation
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for PrefixOperator
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for QuoteExpression
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for QuoteSpecifier
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for RawStringContent
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for RawStringElement
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for RawStringLiteral
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for ReturnStatement
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for Sequence
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for SequenceCell
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for SequenceElement
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for SourceFile
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for StringContent
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for StringElement
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for StringLiteral
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for StructuredBinding
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for Symbol
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for SyntaxNode
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for ThenClause
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for ThrowStatement
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for TrapStatement
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for TryFallback
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for TryStatement
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for WhileLoop
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Add
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _AddAdd
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _AddAddEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _AddEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Amp
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _AmpEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _And
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Att
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _AttAtt
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _AttAttEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _AttAttQsm
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _AttAttQsmEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _AttEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Bng
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _BngEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Box
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _BoxEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _BreakKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _BreakpointKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Bsl
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _BslBsl
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _BslBslEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _BslEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CatchKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Cdt
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CdtEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Cma
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Col
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ColEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ContinueKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Crt
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CrtBng
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CrtCrt
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CrtCrtEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CrtEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CrtGst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CrtGstEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CrtLst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CrtLstEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CrtMul
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CrtMulMul
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CrtMulMulEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _CrtTld
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _DoKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Dot
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _DotDot
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _DotDotEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _DotDotLst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _DotDotLstEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _DotQsm
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ElapsedTimeKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ElapsedTimingKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ElseKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Eql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _EqlBngEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _EqlEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _EqlEqlEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _EqlEqlEqlGst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _EqlEqlEqlGstEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _EqlEqlGst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _EqlEqlGstEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _EqlGst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ExceptKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _FinishKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ForKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _FromKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _GlobalKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Graded
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Gst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _GstEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _GstGst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _GstGstEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Hsh
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _HshQsm
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _IfKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _InKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ListKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _LocalKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Lst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _LstEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _LstEqlEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _LstEqlEqlEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _LstEqlEqlGst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _LstEqlEqlGstEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _LstLst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _LstLstEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _LstSub
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Mod
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ModEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Mul
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _MulEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _MulMul
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _MulMulEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _NewKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Not
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _OfKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Or
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Pip
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _PipEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _PipPip
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _PipPipEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _PipSub
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _PipSubEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _PipUbs
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _PipUbsEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ProfileKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Qsm
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _QsmQsm
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _QsmQsmEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ReturnKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Scl
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Sfp
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _SfpEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ShieldKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Slh
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _SlhEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _SlhSlh
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _SlhSlhEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Space
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _StepKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Sub
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _SubEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _SubGst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _SymbolKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _TestKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ThenKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ThreadLocalKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ThreadVariableKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ThrowKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _TimeKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _TimingKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Tld
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _TldEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _ToKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _TrapKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _TryKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Ubs
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _UbsBng
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _UbsEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _UbsGst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _UbsGstEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _UbsLst
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _UbsLstEql
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _UbsMul
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _UbsTld
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _WhenKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _WhileKeyword
where N: ExternalCstNode,

Source§

impl<N> Reconstruct<N> for _Xor
where N: ExternalCstNode,