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

Source§

impl<'tree> FromNode<'tree> for AnnotationArgumentListChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for AnnotationName<'tree>

Source§

impl<'tree> FromNode<'tree> for AnnotationTypeBodyChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for AnnotationTypeElementDeclarationValue<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrayCreationExpressionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrayCreationExpressionDimensions<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrayInitializerChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for AssignmentExpressionLeft<'tree>

Source§

impl<'tree> FromNode<'tree> for AssignmentExpressionOperator

Source§

impl<'tree> FromNode<'tree> for BinaryExpressionOperator

Source§

impl<'tree> FromNode<'tree> for CatchFormalParameterChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for CatchFormalParameterName<'tree>

Source§

impl<'tree> FromNode<'tree> for ClassBodyChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ConstructorBodyChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ConstructorDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for Declaration<'tree>

Source§

impl<'tree> FromNode<'tree> for DimensionsChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for DimensionsExprChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ElementValueArrayInitializerChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ElementValuePairValue<'tree>

Source§

impl<'tree> FromNode<'tree> for EnhancedForStatementName<'tree>

Source§

impl<'tree> FromNode<'tree> for EnumBodyChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for EnumBodyDeclarationsChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ExplicitConstructorInvocationConstructor<'tree>

Source§

impl<'tree> FromNode<'tree> for ExportsModuleDirectiveModules<'tree>

Source§

impl<'tree> FromNode<'tree> for ExportsModuleDirectivePackage<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for FieldAccessField<'tree>

Source§

impl<'tree> FromNode<'tree> for FieldAccessObject<'tree>

Source§

impl<'tree> FromNode<'tree> for ForStatementInit<'tree>

Source§

impl<'tree> FromNode<'tree> for FormalParameterName<'tree>

Source§

impl<'tree> FromNode<'tree> for FormalParametersChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ImportDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for InterfaceBodyChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for InterfaceDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for LabeledStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for LambdaExpressionBody<'tree>

Source§

impl<'tree> FromNode<'tree> for LambdaExpressionParameters<'tree>

Source§

impl<'tree> FromNode<'tree> for Literal<'tree>

Source§

impl<'tree> FromNode<'tree> for MarkerAnnotationName<'tree>

Source§

impl<'tree> FromNode<'tree> for MethodDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for MethodInvocationObject<'tree>

Source§

impl<'tree> FromNode<'tree> for MethodReferenceChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ModifiersChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ModuleDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ModuleDeclarationName<'tree>

Source§

impl<'tree> FromNode<'tree> for ModuleDirective<'tree>

Source§

impl<'tree> FromNode<'tree> for ObjectCreationExpressionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for OpensModuleDirectiveModules<'tree>

Source§

impl<'tree> FromNode<'tree> for OpensModuleDirectivePackage<'tree>

Source§

impl<'tree> FromNode<'tree> for PackageDeclarationChildren<'tree>

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for ProvidesModuleDirectiveChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ProvidesModuleDirectiveProvided<'tree>

Source§

impl<'tree> FromNode<'tree> for ProvidesModuleDirectiveProvider<'tree>

Source§

impl<'tree> FromNode<'tree> for ReceiverParameterChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for RecordPatternBodyChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for RecordPatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for RecordPatternComponentChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for RequiresModuleDirectiveModule<'tree>

Source§

impl<'tree> FromNode<'tree> for ResourceChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ResourceName<'tree>

Source§

impl<'tree> FromNode<'tree> for ScopedIdentifierScope<'tree>

Source§

impl<'tree> FromNode<'tree> for ScopedTypeIdentifierChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for SimpleType<'tree>

Source§

impl<'tree> FromNode<'tree> for SpreadParameterChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for StringLiteralChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for SwitchBlockChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for SwitchBlockStatementGroupChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for SwitchLabelChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for SwitchRuleChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for TryWithResourcesStatementChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for TypeArgumentsChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeParameterChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for TypePatternChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for UnannotatedType<'tree>

Source§

impl<'tree> FromNode<'tree> for UnaryExpressionOperator

Source§

impl<'tree> FromNode<'tree> for UsesModuleDirectiveType<'tree>

Source§

impl<'tree> FromNode<'tree> for VariableDeclaratorName<'tree>

Source§

impl<'tree> FromNode<'tree> for VariableDeclaratorValue<'tree>

Source§

impl<'tree> FromNode<'tree> for WildcardChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for AnnotatedType<'tree>

Source§

impl<'tree> FromNode<'tree> for Annotation<'tree>

Source§

impl<'tree> FromNode<'tree> for AnnotationArgumentList<'tree>

Source§

impl<'tree> FromNode<'tree> for AnnotationTypeBody<'tree>

Source§

impl<'tree> FromNode<'tree> for AnnotationTypeDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for AnnotationTypeElementDeclaration<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ArrayAccess<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrayCreationExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrayInitializer<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrayType<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for AssignmentExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for Asterisk<'tree>

Source§

impl<'tree> FromNode<'tree> for BinaryExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for BinaryIntegerLiteral<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for BlockComment<'tree>

Source§

impl<'tree> FromNode<'tree> for BooleanType<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for CastExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for CatchClause<'tree>

Source§

impl<'tree> FromNode<'tree> for CatchFormalParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for CatchType<'tree>

Source§

impl<'tree> FromNode<'tree> for CharacterLiteral<'tree>

Source§

impl<'tree> FromNode<'tree> for ClassBody<'tree>

Source§

impl<'tree> FromNode<'tree> for ClassDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for ClassLiteral<'tree>

Source§

impl<'tree> FromNode<'tree> for CompactConstructorDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for ConstantDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for ConstructorBody<'tree>

Source§

impl<'tree> FromNode<'tree> for ConstructorDeclaration<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for DecimalFloatingPointLiteral<'tree>

Source§

impl<'tree> FromNode<'tree> for DecimalIntegerLiteral<'tree>

Source§

impl<'tree> FromNode<'tree> for Dimensions<'tree>

Source§

impl<'tree> FromNode<'tree> for DimensionsExpr<'tree>

Source§

impl<'tree> FromNode<'tree> for DoStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for ElementValueArrayInitializer<'tree>

Source§

impl<'tree> FromNode<'tree> for ElementValuePair<'tree>

Source§

impl<'tree> FromNode<'tree> for EnhancedForStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for EnumBody<'tree>

Source§

impl<'tree> FromNode<'tree> for EnumBodyDeclarations<'tree>

Source§

impl<'tree> FromNode<'tree> for EnumConstant<'tree>

Source§

impl<'tree> FromNode<'tree> for EnumDeclaration<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ExplicitConstructorInvocation<'tree>

Source§

impl<'tree> FromNode<'tree> for ExportsModuleDirective<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ExtendsInterfaces<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for FieldAccess<'tree>

Source§

impl<'tree> FromNode<'tree> for FieldDeclaration<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for FloatingPointType<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for FormalParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for FormalParameters<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for Guard<'tree>

Source§

impl<'tree> FromNode<'tree> for HexFloatingPointLiteral<'tree>

Source§

impl<'tree> FromNode<'tree> for HexIntegerLiteral<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for ImportDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for InferredParameters<'tree>

Source§

impl<'tree> FromNode<'tree> for InstanceofExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for IntegralType<'tree>

Source§

impl<'tree> FromNode<'tree> for InterfaceBody<'tree>

Source§

impl<'tree> FromNode<'tree> for InterfaceDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for LabeledStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for LambdaExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for LineComment<'tree>

Source§

impl<'tree> FromNode<'tree> for LocalVariableDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for MarkerAnnotation<'tree>

Source§

impl<'tree> FromNode<'tree> for MethodDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for MethodInvocation<'tree>

Source§

impl<'tree> FromNode<'tree> for MethodReference<'tree>

Source§

impl<'tree> FromNode<'tree> for Modifiers<'tree>

Source§

impl<'tree> FromNode<'tree> for ModuleBody<'tree>

Source§

impl<'tree> FromNode<'tree> for ModuleDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for MultilineStringFragment<'tree>

Source§

impl<'tree> FromNode<'tree> for NullLiteral<'tree>

Source§

impl<'tree> FromNode<'tree> for ObjectCreationExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for OctalIntegerLiteral<'tree>

Source§

impl<'tree> FromNode<'tree> for OpensModuleDirective<'tree>

Source§

impl<'tree> FromNode<'tree> for PackageDeclaration<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for Permits<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ProvidesModuleDirective<'tree>

Source§

impl<'tree> FromNode<'tree> for ReceiverParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for RecordDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for RecordPattern<'tree>

Source§

impl<'tree> FromNode<'tree> for RecordPatternBody<'tree>

Source§

impl<'tree> FromNode<'tree> for RecordPatternComponent<'tree>

Source§

impl<'tree> FromNode<'tree> for RequiresModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for RequiresModuleDirective<'tree>

Source§

impl<'tree> FromNode<'tree> for Resource<'tree>

Source§

impl<'tree> FromNode<'tree> for ResourceSpecification<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ScopedIdentifier<'tree>

Source§

impl<'tree> FromNode<'tree> for ScopedTypeIdentifier<'tree>

Source§

impl<'tree> FromNode<'tree> for SpreadParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for StaticInitializer<'tree>

Source§

impl<'tree> FromNode<'tree> for StringFragment<'tree>

Source§

impl<'tree> FromNode<'tree> for StringInterpolation<'tree>

Source§

impl<'tree> FromNode<'tree> for StringLiteral<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for SuperInterfaces<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for SwitchBlock<'tree>

Source§

impl<'tree> FromNode<'tree> for SwitchBlockStatementGroup<'tree>

Source§

impl<'tree> FromNode<'tree> for SwitchExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for SwitchLabel<'tree>

Source§

impl<'tree> FromNode<'tree> for SwitchRule<'tree>

Source§

impl<'tree> FromNode<'tree> for SynchronizedStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for TemplateExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for TernaryExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for This<'tree>

Source§

impl<'tree> FromNode<'tree> for ThrowStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for Throws<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for TryWithResourcesStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeArguments<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeBound<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeIdentifier<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeList<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for TypeParameters<'tree>

Source§

impl<'tree> FromNode<'tree> for TypePattern<'tree>

Source§

impl<'tree> FromNode<'tree> for UnaryExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for UnderscorePattern<'tree>

Source§

impl<'tree> FromNode<'tree> for UpdateExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for UsesModuleDirective<'tree>

Source§

impl<'tree> FromNode<'tree> for VariableDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for VoidType<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for Wildcard<'tree>

Source§

impl<'tree> FromNode<'tree> for YieldStatement<'tree>