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

Source§

impl<'tree> FromNode<'tree> for AbstractDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for AbstractParenthesizedDeclaratorChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for AbstractPointerDeclaratorChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for AlignasQualifierChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ArrayDeclaratorDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrayDeclaratorSize<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for AttributedDeclaratorChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for AttributedStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for BinaryExpressionLeft<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for BinaryExpressionRight<'tree>

Source§

impl<'tree> FromNode<'tree> for CaseStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for CharLiteralChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for CommaExpressionRight<'tree>

Source§

impl<'tree> FromNode<'tree> for CompoundStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ConcatenatedStringChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ConditionalExpressionConsequence<'tree>

Source§

impl<'tree> FromNode<'tree> for DeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for DeclarationDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for DeclarationListChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for Declarator<'tree>

Source§

impl<'tree> FromNode<'tree> for EnumeratorListChildren<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for FieldDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for FieldDeclarationListChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for FieldDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for FieldExpressionOperator

Source§

impl<'tree> FromNode<'tree> for ForStatementCondition<'tree>

Source§

impl<'tree> FromNode<'tree> for ForStatementInitializer<'tree>

Source§

impl<'tree> FromNode<'tree> for ForStatementUpdate<'tree>

Source§

impl<'tree> FromNode<'tree> for FunctionDeclaratorChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for FunctionDeclaratorDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for FunctionDefinitionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for GenericExpressionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for GnuAsmClobberListRegister<'tree>

Source§

impl<'tree> FromNode<'tree> for GnuAsmExpressionAssemblyCode<'tree>

Source§

impl<'tree> FromNode<'tree> for InitDeclaratorValue<'tree>

Source§

impl<'tree> FromNode<'tree> for InitializerListChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for InitializerPairDesignator<'tree>

Source§

impl<'tree> FromNode<'tree> for InitializerPairValue<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for LinkageSpecificationBody<'tree>

Source§

impl<'tree> FromNode<'tree> for MsPointerModifierChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ParameterDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ParameterDeclarationDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for ParameterListChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ParenthesizedDeclaratorChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for PointerDeclaratorChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for PointerDeclaratorDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for PointerExpressionOperator

Source§

impl<'tree> FromNode<'tree> for PreprocElifAlternative<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocElifChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocElifCondition<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocElifdefAlternative<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocElifdefChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocElseChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocIfAlternative<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocIfChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocIfCondition<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocIfdefAlternative<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocIfdefChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocIncludePath<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for SehTryStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for SizedTypeSpecifierType<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for StructSpecifierChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for TranslationUnitChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeDefinitionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeSpecifier<'tree>

Source§

impl<'tree> FromNode<'tree> for UnaryExpressionArgument<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for UnionSpecifierChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for UpdateExpressionOperator

Source§

impl<'tree> FromNode<'tree> for AbstractArrayDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for AbstractFunctionDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for AbstractParenthesizedDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for AbstractPointerDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for AlignasQualifier<'tree>

Source§

impl<'tree> FromNode<'tree> for AlignofExpression<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ArrayDeclarator<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for AttributeDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for AttributeSpecifier<'tree>

Source§

impl<'tree> FromNode<'tree> for AttributedDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for AttributedStatement<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for BitfieldClause<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for CallExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for CaseStatement<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for CharLiteral<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for CommaExpression<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for CompoundLiteralExpression<'tree>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for DeclarationList<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for EnumSpecifier<'tree>

Source§

impl<'tree> FromNode<'tree> for Enumerator<'tree>

Source§

impl<'tree> FromNode<'tree> for EnumeratorList<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for ExtensionExpression<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for FieldDeclarationList<'tree>

Source§

impl<'tree> FromNode<'tree> for FieldDesignator<'tree>

Source§

impl<'tree> FromNode<'tree> for FieldExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for FieldIdentifier<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for FunctionDeclarator<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for GenericExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for GnuAsmClobberList<'tree>

Source§

impl<'tree> FromNode<'tree> for GnuAsmExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for GnuAsmGotoList<'tree>

Source§

impl<'tree> FromNode<'tree> for GnuAsmInputOperand<'tree>

Source§

impl<'tree> FromNode<'tree> for GnuAsmInputOperandList<'tree>

Source§

impl<'tree> FromNode<'tree> for GnuAsmOutputOperand<'tree>

Source§

impl<'tree> FromNode<'tree> for GnuAsmOutputOperandList<'tree>

Source§

impl<'tree> FromNode<'tree> for GnuAsmQualifier<'tree>

Source§

impl<'tree> FromNode<'tree> for GotoStatement<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for InitDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for InitializerList<'tree>

Source§

impl<'tree> FromNode<'tree> for InitializerPair<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for LinkageSpecification<'tree>

Source§

impl<'tree> FromNode<'tree> for MacroTypeSpecifier<'tree>

Source§

impl<'tree> FromNode<'tree> for MsBasedModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for MsCallModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for MsDeclspecModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for MsPointerModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for MsRestrictModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for MsSignedPtrModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for MsUnalignedPtrModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for MsUnsignedPtrModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for Null<'tree>

Source§

impl<'tree> FromNode<'tree> for NumberLiteral<'tree>

Source§

impl<'tree> FromNode<'tree> for OffsetofExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for ParameterDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for ParameterList<'tree>

Source§

impl<'tree> FromNode<'tree> for ParenthesizedDeclarator<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for PointerDeclarator<'tree>

Source§

impl<'tree> FromNode<'tree> for PointerExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocArg<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocCall<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocDef<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocDefined<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocDirective<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocElif<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocElifdef<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocElse<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocFunctionDef<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocIf<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocIfdef<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocInclude<'tree>

Source§

impl<'tree> FromNode<'tree> for PreprocParams<'tree>

Source§

impl<'tree> FromNode<'tree> for PrimitiveType<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for SehExceptClause<'tree>

Source§

impl<'tree> FromNode<'tree> for SehFinallyClause<'tree>

Source§

impl<'tree> FromNode<'tree> for SehLeaveStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for SehTryStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for SizedTypeSpecifier<'tree>

Source§

impl<'tree> FromNode<'tree> for SizeofExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for StatementIdentifier<'tree>

Source§

impl<'tree> FromNode<'tree> for StorageClassSpecifier<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for StructSpecifier<'tree>

Source§

impl<'tree> FromNode<'tree> for SubscriptDesignator<'tree>

Source§

impl<'tree> FromNode<'tree> for SubscriptExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for SubscriptRangeDesignator<'tree>

Source§

impl<'tree> FromNode<'tree> for SwitchStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for SystemLibString<'tree>

Source§

impl<'tree> FromNode<'tree> for TranslationUnit<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for TypeDefinition<'tree>

Source§

impl<'tree> FromNode<'tree> for TypeDescriptor<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for TypeQualifier<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for UnionSpecifier<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for VariadicParameter<'tree>

Source§

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