Skip to main content

FromNode

Trait FromNode 

Source
pub trait FromNode<'tree>: Sized {
    // Required method
    fn from_node(
        node: Node<'tree>,
        src: &'tree [u8],
    ) -> Result<Self, ParseError>;
}
Expand description

Every generated struct and enum implements this.

Required Methods§

Source

fn from_node(node: Node<'tree>, src: &'tree [u8]) -> Result<Self, ParseError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'tree> FromNode<'tree> for Arg<'tree>

Source§

impl<'tree> FromNode<'tree> for ArgumentListChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrayChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrayPatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for AssignmentLeft<'tree>

Source§

impl<'tree> FromNode<'tree> for AssignmentRight<'tree>

Source§

impl<'tree> FromNode<'tree> for BareStringChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for BareSymbolChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for BeginBlockChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for BeginChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for BinaryLeft<'tree>

Source§

impl<'tree> FromNode<'tree> for BinaryOperator

Source§

impl<'tree> FromNode<'tree> for BlockBodyChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for BlockParametersChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for BodyStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for CallBlock<'tree>

Source§

impl<'tree> FromNode<'tree> for CallMethod<'tree>

Source§

impl<'tree> FromNode<'tree> for CallOperator

Source§

impl<'tree> FromNode<'tree> for CaseChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ClassName<'tree>

Source§

impl<'tree> FromNode<'tree> for ComplexChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for DelimitedSymbolChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for DestructuredLeftAssignmentChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for DestructuredParameterChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for DoChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ElementReferenceBlock<'tree>

Source§

impl<'tree> FromNode<'tree> for ElementReferenceChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ElseChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ElsifAlternative<'tree>

Source§

impl<'tree> FromNode<'tree> for EndBlockChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for EnsureChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ExceptionsChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for Expression<'tree>

Source§

impl<'tree> FromNode<'tree> for FindPatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ForPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for HashChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for HashPatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for HeredocBodyChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for IfAlternative<'tree>

Source§

impl<'tree> FromNode<'tree> for InClauseGuard<'tree>

Source§

impl<'tree> FromNode<'tree> for InterpolationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for KeywordPatternKey<'tree>

Source§

impl<'tree> FromNode<'tree> for LambdaBody<'tree>

Source§

impl<'tree> FromNode<'tree> for LambdaParametersChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for LeftAssignmentListChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for Lhs<'tree>

Source§

impl<'tree> FromNode<'tree> for MethodBody<'tree>

Source§

impl<'tree> FromNode<'tree> for MethodName<'tree>

Source§

impl<'tree> FromNode<'tree> for MethodParametersChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ModuleName<'tree>

Source§

impl<'tree> FromNode<'tree> for NonlocalVariable<'tree>

Source§

impl<'tree> FromNode<'tree> for OperatorAssignmentOperator

Source§

impl<'tree> FromNode<'tree> for OperatorAssignmentRight<'tree>

Source§

impl<'tree> FromNode<'tree> for PairKey<'tree>

Source§

impl<'tree> FromNode<'tree> for ParenthesizedStatementsChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for PatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for PatternConstant<'tree>

Source§

impl<'tree> FromNode<'tree> for PatternExpr<'tree>

Source§

impl<'tree> FromNode<'tree> for PatternExprBasic<'tree>

Source§

impl<'tree> FromNode<'tree> for PatternPrimitive<'tree>

Source§

impl<'tree> FromNode<'tree> for PatternTopExprBody<'tree>

Source§

impl<'tree> FromNode<'tree> for Primary<'tree>

Source§

impl<'tree> FromNode<'tree> for ProgramChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for RangeBegin<'tree>

Source§

impl<'tree> FromNode<'tree> for RangeEnd<'tree>

Source§

impl<'tree> FromNode<'tree> for RangeOperator

Source§

impl<'tree> FromNode<'tree> for RationalChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for RegexChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for RescueModifierBody<'tree>

Source§

impl<'tree> FromNode<'tree> for RightAssignmentListChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ScopeResolutionScope<'tree>

Source§

impl<'tree> FromNode<'tree> for SimpleNumeric<'tree>

Source§

impl<'tree> FromNode<'tree> for SingletonMethodBody<'tree>

Source§

impl<'tree> FromNode<'tree> for SingletonMethodObject<'tree>

Source§

impl<'tree> FromNode<'tree> for Statement<'tree>

Source§

impl<'tree> FromNode<'tree> for StringChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for SubshellChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ThenChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for UnaryOperand<'tree>

Source§

impl<'tree> FromNode<'tree> for UnaryOperator

Source§

impl<'tree> FromNode<'tree> for UnlessAlternative<'tree>

Source§

impl<'tree> FromNode<'tree> for Variable<'tree>

Source§

impl<'tree> FromNode<'tree> for VariableReferencePatternName<'tree>

Source§

impl<'tree> FromNode<'tree> for Alias<'tree>

Source§

impl<'tree> FromNode<'tree> for AlternativePattern<'tree>

Source§

impl<'tree> FromNode<'tree> for ArgumentList<'tree>

Source§

impl<'tree> FromNode<'tree> for Array<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrayPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for AsPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for Assignment<'tree>

Source§

impl<'tree> FromNode<'tree> for BareString<'tree>

Source§

impl<'tree> FromNode<'tree> for BareSymbol<'tree>

Source§

impl<'tree> FromNode<'tree> for Begin<'tree>

Source§

impl<'tree> FromNode<'tree> for BeginBlock<'tree>

Source§

impl<'tree> FromNode<'tree> for Binary<'tree>

Source§

impl<'tree> FromNode<'tree> for Block<'tree>

Source§

impl<'tree> FromNode<'tree> for BlockArgument<'tree>

Source§

impl<'tree> FromNode<'tree> for BlockBody<'tree>

Source§

impl<'tree> FromNode<'tree> for BlockParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for BlockParameters<'tree>

Source§

impl<'tree> FromNode<'tree> for BodyStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for Break<'tree>

Source§

impl<'tree> FromNode<'tree> for Call<'tree>

Source§

impl<'tree> FromNode<'tree> for Case<'tree>

Source§

impl<'tree> FromNode<'tree> for CaseMatch<'tree>

Source§

impl<'tree> FromNode<'tree> for ChainedString<'tree>

Source§

impl<'tree> FromNode<'tree> for Character<'tree>

Source§

impl<'tree> FromNode<'tree> for Class<'tree>

Source§

impl<'tree> FromNode<'tree> for ClassVariable<'tree>

Source§

impl<'tree> FromNode<'tree> for Comment<'tree>

Source§

impl<'tree> FromNode<'tree> for Complex<'tree>

Source§

impl<'tree> FromNode<'tree> for Conditional<'tree>

Source§

impl<'tree> FromNode<'tree> for Constant<'tree>

Source§

impl<'tree> FromNode<'tree> for DelimitedSymbol<'tree>

Source§

impl<'tree> FromNode<'tree> for DestructuredLeftAssignment<'tree>

Source§

impl<'tree> FromNode<'tree> for DestructuredParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for Do<'tree>

Source§

impl<'tree> FromNode<'tree> for DoBlock<'tree>

Source§

impl<'tree> FromNode<'tree> for ElementReference<'tree>

Source§

impl<'tree> FromNode<'tree> for Else<'tree>

Source§

impl<'tree> FromNode<'tree> for Elsif<'tree>

Source§

impl<'tree> FromNode<'tree> for EmptyStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for Encoding<'tree>

Source§

impl<'tree> FromNode<'tree> for EndBlock<'tree>

Source§

impl<'tree> FromNode<'tree> for Ensure<'tree>

Source§

impl<'tree> FromNode<'tree> for EscapeSequence<'tree>

Source§

impl<'tree> FromNode<'tree> for ExceptionVariable<'tree>

Source§

impl<'tree> FromNode<'tree> for Exceptions<'tree>

Source§

impl<'tree> FromNode<'tree> for ExpressionReferencePattern<'tree>

Source§

impl<'tree> FromNode<'tree> for False<'tree>

Source§

impl<'tree> FromNode<'tree> for File<'tree>

Source§

impl<'tree> FromNode<'tree> for FindPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for Float<'tree>

Source§

impl<'tree> FromNode<'tree> for For<'tree>

Source§

impl<'tree> FromNode<'tree> for ForwardArgument<'tree>

Source§

impl<'tree> FromNode<'tree> for ForwardParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for GlobalVariable<'tree>

Source§

impl<'tree> FromNode<'tree> for Hash<'tree>

Source§

impl<'tree> FromNode<'tree> for HashKeySymbol<'tree>

Source§

impl<'tree> FromNode<'tree> for HashPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for HashSplatArgument<'tree>

Source§

impl<'tree> FromNode<'tree> for HashSplatNil<'tree>

Source§

impl<'tree> FromNode<'tree> for HashSplatParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for HeredocBeginning<'tree>

Source§

impl<'tree> FromNode<'tree> for HeredocBody<'tree>

Source§

impl<'tree> FromNode<'tree> for HeredocContent<'tree>

Source§

impl<'tree> FromNode<'tree> for HeredocEnd<'tree>

Source§

impl<'tree> FromNode<'tree> for Identifier<'tree>

Source§

impl<'tree> FromNode<'tree> for If<'tree>

Source§

impl<'tree> FromNode<'tree> for IfGuard<'tree>

Source§

impl<'tree> FromNode<'tree> for IfModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for In<'tree>

Source§

impl<'tree> FromNode<'tree> for InClause<'tree>

Source§

impl<'tree> FromNode<'tree> for InstanceVariable<'tree>

Source§

impl<'tree> FromNode<'tree> for Integer<'tree>

Source§

impl<'tree> FromNode<'tree> for Interpolation<'tree>

Source§

impl<'tree> FromNode<'tree> for KeywordParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for KeywordPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for Lambda<'tree>

Source§

impl<'tree> FromNode<'tree> for LambdaParameters<'tree>

Source§

impl<'tree> FromNode<'tree> for LeftAssignmentList<'tree>

Source§

impl<'tree> FromNode<'tree> for Line<'tree>

Source§

impl<'tree> FromNode<'tree> for MatchPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for Method<'tree>

Source§

impl<'tree> FromNode<'tree> for MethodParameters<'tree>

Source§

impl<'tree> FromNode<'tree> for Module<'tree>

Source§

impl<'tree> FromNode<'tree> for Next<'tree>

Source§

impl<'tree> FromNode<'tree> for Nil<'tree>

Source§

impl<'tree> FromNode<'tree> for Operator<'tree>

Source§

impl<'tree> FromNode<'tree> for OperatorAssignment<'tree>

Source§

impl<'tree> FromNode<'tree> for OptionalParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for Pair<'tree>

Source§

impl<'tree> FromNode<'tree> for ParenthesizedPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for ParenthesizedStatements<'tree>

Source§

impl<'tree> FromNode<'tree> for Pattern<'tree>

Source§

impl<'tree> FromNode<'tree> for Program<'tree>

Source§

impl<'tree> FromNode<'tree> for Range<'tree>

Source§

impl<'tree> FromNode<'tree> for Rational<'tree>

Source§

impl<'tree> FromNode<'tree> for Redo<'tree>

Source§

impl<'tree> FromNode<'tree> for Regex<'tree>

Source§

impl<'tree> FromNode<'tree> for Rescue<'tree>

Source§

impl<'tree> FromNode<'tree> for RescueModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for RestAssignment<'tree>

Source§

impl<'tree> FromNode<'tree> for Retry<'tree>

Source§

impl<'tree> FromNode<'tree> for Return<'tree>

Source§

impl<'tree> FromNode<'tree> for RightAssignmentList<'tree>

Source§

impl<'tree> FromNode<'tree> for ScopeResolution<'tree>

Source§

impl<'tree> FromNode<'tree> for SelfType<'tree>

Source§

impl<'tree> FromNode<'tree> for Setter<'tree>

Source§

impl<'tree> FromNode<'tree> for SimpleSymbol<'tree>

Source§

impl<'tree> FromNode<'tree> for SingletonClass<'tree>

Source§

impl<'tree> FromNode<'tree> for SingletonMethod<'tree>

Source§

impl<'tree> FromNode<'tree> for SplatArgument<'tree>

Source§

impl<'tree> FromNode<'tree> for SplatParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for String<'tree>

Source§

impl<'tree> FromNode<'tree> for StringArray<'tree>

Source§

impl<'tree> FromNode<'tree> for StringContent<'tree>

Source§

impl<'tree> FromNode<'tree> for Subshell<'tree>

Source§

impl<'tree> FromNode<'tree> for Super<'tree>

Source§

impl<'tree> FromNode<'tree> for Superclass<'tree>

Source§

impl<'tree> FromNode<'tree> for SymbolArray<'tree>

Source§

impl<'tree> FromNode<'tree> for TestPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for Then<'tree>

Source§

impl<'tree> FromNode<'tree> for True<'tree>

Source§

impl<'tree> FromNode<'tree> for Unary<'tree>

Source§

impl<'tree> FromNode<'tree> for Undef<'tree>

Source§

impl<'tree> FromNode<'tree> for Uninterpreted<'tree>

Source§

impl<'tree> FromNode<'tree> for Unless<'tree>

Source§

impl<'tree> FromNode<'tree> for UnlessGuard<'tree>

Source§

impl<'tree> FromNode<'tree> for UnlessModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for Until<'tree>

Source§

impl<'tree> FromNode<'tree> for UntilModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for VariableReferencePattern<'tree>

Source§

impl<'tree> FromNode<'tree> for When<'tree>

Source§

impl<'tree> FromNode<'tree> for While<'tree>

Source§

impl<'tree> FromNode<'tree> for WhileModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for Yield<'tree>