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 ArgumentListChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for AsPatternChildren<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for AugmentedAssignmentLeft<'tree>

Source§

impl<'tree> FromNode<'tree> for AugmentedAssignmentOperator

Source§

impl<'tree> FromNode<'tree> for AugmentedAssignmentRight<'tree>

Source§

impl<'tree> FromNode<'tree> for BinaryOperatorOperator

Source§

impl<'tree> FromNode<'tree> for BlockChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for BooleanOperatorOperator

Source§

impl<'tree> FromNode<'tree> for CallArguments<'tree>

Source§

impl<'tree> FromNode<'tree> for CasePatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ClassPatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ComparisonOperatorOperators

Source§

impl<'tree> FromNode<'tree> for ComplexPatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for CompoundStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for DecoratedDefinitionDefinition<'tree>

Source§

impl<'tree> FromNode<'tree> for DefaultParameterName<'tree>

Source§

impl<'tree> FromNode<'tree> for DeleteStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for DictPatternKey<'tree>

Source§

impl<'tree> FromNode<'tree> for DictionaryChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for DictionaryComprehensionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for DictionarySplatPatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ExecStatementCode<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ExpressionStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ForInClauseLeft<'tree>

Source§

impl<'tree> FromNode<'tree> for ForInClauseRight<'tree>

Source§

impl<'tree> FromNode<'tree> for ForStatementLeft<'tree>

Source§

impl<'tree> FromNode<'tree> for ForStatementRight<'tree>

Source§

impl<'tree> FromNode<'tree> for FormatExpressionExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for FutureImportStatementName<'tree>

Source§

impl<'tree> FromNode<'tree> for GeneratorExpressionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for GenericTypeChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for IfStatementAlternative<'tree>

Source§

impl<'tree> FromNode<'tree> for ImportFromStatementModuleName<'tree>

Source§

impl<'tree> FromNode<'tree> for ImportFromStatementName<'tree>

Source§

impl<'tree> FromNode<'tree> for ImportStatementName<'tree>

Source§

impl<'tree> FromNode<'tree> for InterpolationExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for KeywordPatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ListChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ListComprehensionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ListPatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ListSplatChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ListSplatPatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for MemberTypeChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ModuleChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for Parameter<'tree>

Source§

impl<'tree> FromNode<'tree> for ParenthesizedExpressionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ParenthesizedListSplatChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for PrimaryExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for RaiseStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for RelativeImportChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ReturnStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for SetChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for SetComprehensionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for SimpleStatement<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for StringContentChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for SubscriptSubscript<'tree>

Source§

impl<'tree> FromNode<'tree> for TryStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for TupleChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for TuplePatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for TypedParameterChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for UnaryOperatorOperator

Source§

impl<'tree> FromNode<'tree> for UnionPatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for YieldChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for AliasedImport<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for AsPatternTarget<'tree>

Source§

impl<'tree> FromNode<'tree> for AssertStatement<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for Attribute<'tree>

Source§

impl<'tree> FromNode<'tree> for AugmentedAssignment<'tree>

Source§

impl<'tree> FromNode<'tree> for Await<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for BooleanOperator<'tree>

Source§

impl<'tree> FromNode<'tree> for BreakStatement<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for CaseClause<'tree>

Source§

impl<'tree> FromNode<'tree> for CasePattern<'tree>

Source§

impl<'tree> FromNode<'tree> for Chevron<'tree>

Source§

impl<'tree> FromNode<'tree> for ClassDefinition<'tree>

Source§

impl<'tree> FromNode<'tree> for ClassPattern<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ComparisonOperator<'tree>

Source§

impl<'tree> FromNode<'tree> for ComplexPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for ConcatenatedString<'tree>

Source§

impl<'tree> FromNode<'tree> for ConditionalExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for ConstrainedType<'tree>

Source§

impl<'tree> FromNode<'tree> for ContinueStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for DecoratedDefinition<'tree>

Source§

impl<'tree> FromNode<'tree> for Decorator<'tree>

Source§

impl<'tree> FromNode<'tree> for DefaultParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for DeleteStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for DictPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for Dictionary<'tree>

Source§

impl<'tree> FromNode<'tree> for DictionaryComprehension<'tree>

Source§

impl<'tree> FromNode<'tree> for DictionarySplat<'tree>

Source§

impl<'tree> FromNode<'tree> for DictionarySplatPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for DottedName<'tree>

Source§

impl<'tree> FromNode<'tree> for ElifClause<'tree>

Source§

impl<'tree> FromNode<'tree> for Ellipsis<'tree>

Source§

impl<'tree> FromNode<'tree> for ElseClause<'tree>

Source§

impl<'tree> FromNode<'tree> for EscapeInterpolation<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ExceptClause<'tree>

Source§

impl<'tree> FromNode<'tree> for ExecStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for ExpressionList<'tree>

Source§

impl<'tree> FromNode<'tree> for ExpressionStatement<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for FinallyClause<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ForInClause<'tree>

Source§

impl<'tree> FromNode<'tree> for ForStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for FormatExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for FormatSpecifier<'tree>

Source§

impl<'tree> FromNode<'tree> for FunctionDefinition<'tree>

Source§

impl<'tree> FromNode<'tree> for FutureImportStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for GeneratorExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for GenericType<'tree>

Source§

impl<'tree> FromNode<'tree> for GlobalStatement<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for IfClause<'tree>

Source§

impl<'tree> FromNode<'tree> for IfStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for ImportFromStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for ImportPrefix<'tree>

Source§

impl<'tree> FromNode<'tree> for ImportStatement<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for KeywordArgument<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for KeywordSeparator<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for LineContinuation<'tree>

Source§

impl<'tree> FromNode<'tree> for List<'tree>

Source§

impl<'tree> FromNode<'tree> for ListComprehension<'tree>

Source§

impl<'tree> FromNode<'tree> for ListPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for ListSplat<'tree>

Source§

impl<'tree> FromNode<'tree> for ListSplatPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for MatchStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for MemberType<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for NamedExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for None<'tree>

Source§

impl<'tree> FromNode<'tree> for NonlocalStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for NotOperator<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for Parameters<'tree>

Source§

impl<'tree> FromNode<'tree> for ParenthesizedExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for ParenthesizedListSplat<'tree>

Source§

impl<'tree> FromNode<'tree> for PassStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for PatternList<'tree>

Source§

impl<'tree> FromNode<'tree> for PositionalSeparator<'tree>

Source§

impl<'tree> FromNode<'tree> for PrintStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for RaiseStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for RelativeImport<'tree>

Source§

impl<'tree> FromNode<'tree> for ReturnStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for Set<'tree>

Source§

impl<'tree> FromNode<'tree> for SetComprehension<'tree>

Source§

impl<'tree> FromNode<'tree> for Slice<'tree>

Source§

impl<'tree> FromNode<'tree> for SplatPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for SplatType<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for StringEnd<'tree>

Source§

impl<'tree> FromNode<'tree> for StringStart<'tree>

Source§

impl<'tree> FromNode<'tree> for Subscript<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for TryStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for Tuple<'tree>

Source§

impl<'tree> FromNode<'tree> for TuplePattern<'tree>

Source§

impl<'tree> FromNode<'tree> for Type<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeAliasStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeConversion<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for TypedDefaultParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for TypedParameter<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for UnionPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for UnionType<'tree>

Source§

impl<'tree> FromNode<'tree> for WhileStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for WildcardImport<'tree>

Source§

impl<'tree> FromNode<'tree> for WithClause<'tree>

Source§

impl<'tree> FromNode<'tree> for WithItem<'tree>

Source§

impl<'tree> FromNode<'tree> for WithStatement<'tree>

Source§

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