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

Source§

impl<'tree> FromNode<'tree> for AnonymousFunctionReturnType<'tree>

Source§

impl<'tree> FromNode<'tree> for AnonymousFunctionUseClauseChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ArgumentChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ArgumentsChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrayElementInitializerChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrowFunctionReturnType<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for AttributeChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for AugmentedAssignmentExpressionLeft<'tree>

Source§

impl<'tree> FromNode<'tree> for AugmentedAssignmentExpressionOperator

Source§

impl<'tree> FromNode<'tree> for BaseClauseChildren<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for ByRefChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for CastExpressionValue<'tree>

Source§

impl<'tree> FromNode<'tree> for ClassConstantAccessExpressionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ClassDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ClassInterfaceClauseChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ConstDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ConstElementChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for DeclareStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for DisjunctiveNormalFormTypeChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for DynamicVariableNameChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for EchoStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ElseClauseBody<'tree>

Source§

impl<'tree> FromNode<'tree> for ElseIfClauseBody<'tree>

Source§

impl<'tree> FromNode<'tree> for EncapsedStringChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for EnumDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for EnumDeclarationListChildren<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for ForStatementInitialize<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ForeachStatementBody<'tree>

Source§

impl<'tree> FromNode<'tree> for ForeachStatementChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for FunctionCallExpressionFunction<'tree>

Source§

impl<'tree> FromNode<'tree> for FunctionDefinitionReturnType<'tree>

Source§

impl<'tree> FromNode<'tree> for GlobalDeclarationChildren<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for IfStatementBody<'tree>

Source§

impl<'tree> FromNode<'tree> for IntersectionTypeChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ListLiteralChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for MatchBlockChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for MemberAccessExpressionName<'tree>

Source§

impl<'tree> FromNode<'tree> for MemberAccessExpressionObject<'tree>

Source§

impl<'tree> FromNode<'tree> for MemberCallExpressionName<'tree>

Source§

impl<'tree> FromNode<'tree> for MemberCallExpressionObject<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for MethodDeclarationReturnType<'tree>

Source§

impl<'tree> FromNode<'tree> for NamedTypeChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for NamespaceUseClauseChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for NamespaceUseClauseType

Source§

impl<'tree> FromNode<'tree> for NamespaceUseDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for NamespaceUseDeclarationType

Source§

impl<'tree> FromNode<'tree> for NullsafeMemberAccessExpressionName<'tree>

Source§

impl<'tree> FromNode<'tree> for NullsafeMemberAccessExpressionObject<'tree>

Source§

impl<'tree> FromNode<'tree> for NullsafeMemberCallExpressionName<'tree>

Source§

impl<'tree> FromNode<'tree> for NullsafeMemberCallExpressionObject<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for OptionalTypeChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for PairChildren<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for PropertyDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for PropertyHookBody<'tree>

Source§

impl<'tree> FromNode<'tree> for PropertyPromotionParameterName<'tree>

Source§

impl<'tree> FromNode<'tree> for QualifiedNamePrefix<'tree>

Source§

impl<'tree> FromNode<'tree> for ReferenceAssignmentExpressionLeft<'tree>

Source§

impl<'tree> FromNode<'tree> for RelativeNamePrefix<'tree>

Source§

impl<'tree> FromNode<'tree> for ScopedCallExpressionName<'tree>

Source§

impl<'tree> FromNode<'tree> for ScopedCallExpressionScope<'tree>

Source§

impl<'tree> FromNode<'tree> for ScopedPropertyAccessExpressionName<'tree>

Source§

impl<'tree> FromNode<'tree> for ScopedPropertyAccessExpressionScope<'tree>

Source§

impl<'tree> FromNode<'tree> for SequenceExpressionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ShellCommandExpressionChildren<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for SubscriptExpressionChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for TextInterpolationChildren<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for UnaryOpExpressionOperator

Source§

impl<'tree> FromNode<'tree> for UnionTypeChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for UnsetStatementChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for UpdateExpressionArgument<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for UseAsClauseChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for UseDeclarationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for UseInsteadOfClauseChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for UseListChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for WhileStatementBody<'tree>

Source§

impl<'tree> FromNode<'tree> for YieldExpressionChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for AbstractModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for AnonymousClass<'tree>

Source§

impl<'tree> FromNode<'tree> for AnonymousFunction<'tree>

Source§

impl<'tree> FromNode<'tree> for AnonymousFunctionUseClause<'tree>

Source§

impl<'tree> FromNode<'tree> for Argument<'tree>

Source§

impl<'tree> FromNode<'tree> for Arguments<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ArrayElementInitializer<'tree>

Source§

impl<'tree> FromNode<'tree> for ArrowFunction<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for AttributeGroup<'tree>

Source§

impl<'tree> FromNode<'tree> for AttributeList<'tree>

Source§

impl<'tree> FromNode<'tree> for AugmentedAssignmentExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for BaseClause<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for Boolean<'tree>

Source§

impl<'tree> FromNode<'tree> for BottomType<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ByRef<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for CastType<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ClassConstantAccessExpression<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ClassInterfaceClause<'tree>

Source§

impl<'tree> FromNode<'tree> for CloneExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for ColonBlock<'tree>

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for ConstDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for ConstElement<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for DeclareDirective<'tree>

Source§

impl<'tree> FromNode<'tree> for DeclareStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for DefaultStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for DisjunctiveNormalFormType<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for DynamicVariableName<'tree>

Source§

impl<'tree> FromNode<'tree> for EchoStatement<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ElseIfClause<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for EncapsedString<'tree>

Source§

impl<'tree> FromNode<'tree> for EnumCase<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for EnumDeclarationList<'tree>

Source§

impl<'tree> FromNode<'tree> for ErrorSuppressionExpression<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ExitStatement<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for FinalModifier<'tree>

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for ForeachStatement<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for FunctionCallExpression<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for FunctionStaticDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for GlobalDeclaration<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for Heredoc<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for HeredocStart<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for IncludeExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for IncludeOnceExpression<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for IntersectionType<'tree>

Source§

impl<'tree> FromNode<'tree> for ListLiteral<'tree>

Source§

impl<'tree> FromNode<'tree> for MatchBlock<'tree>

Source§

impl<'tree> FromNode<'tree> for MatchConditionList<'tree>

Source§

impl<'tree> FromNode<'tree> for MatchConditionalExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for MatchDefaultExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for MatchExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for MemberAccessExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for MemberCallExpression<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for Name<'tree>

Source§

impl<'tree> FromNode<'tree> for NamedLabelStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for NamedType<'tree>

Source§

impl<'tree> FromNode<'tree> for NamespaceDefinition<'tree>

Source§

impl<'tree> FromNode<'tree> for NamespaceName<'tree>

Source§

impl<'tree> FromNode<'tree> for NamespaceUseClause<'tree>

Source§

impl<'tree> FromNode<'tree> for NamespaceUseDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for NamespaceUseGroup<'tree>

Source§

impl<'tree> FromNode<'tree> for Nowdoc<'tree>

Source§

impl<'tree> FromNode<'tree> for NowdocBody<'tree>

Source§

impl<'tree> FromNode<'tree> for NowdocString<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for NullsafeMemberAccessExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for NullsafeMemberCallExpression<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for Operation<'tree>

Source§

impl<'tree> FromNode<'tree> for OptionalType<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for PhpEndTag<'tree>

Source§

impl<'tree> FromNode<'tree> for PhpTag<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for PrintIntrinsic<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for PropertyDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for PropertyElement<'tree>

Source§

impl<'tree> FromNode<'tree> for PropertyHook<'tree>

Source§

impl<'tree> FromNode<'tree> for PropertyHookList<'tree>

Source§

impl<'tree> FromNode<'tree> for PropertyPromotionParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for QualifiedName<'tree>

Source§

impl<'tree> FromNode<'tree> for ReadonlyModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for ReferenceAssignmentExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for ReferenceModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for RelativeName<'tree>

Source§

impl<'tree> FromNode<'tree> for RelativeScope<'tree>

Source§

impl<'tree> FromNode<'tree> for RequireExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for RequireOnceExpression<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for ScopedCallExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for ScopedPropertyAccessExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for SequenceExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for ShellCommandExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for SimpleParameter<'tree>

Source§

impl<'tree> FromNode<'tree> for StaticModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for StaticVariableDeclaration<'tree>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for Text<'tree>

Source§

impl<'tree> FromNode<'tree> for TextInterpolation<'tree>

Source§

impl<'tree> FromNode<'tree> for ThrowExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for TraitDeclaration<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for UnaryOpExpression<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for UnsetStatement<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for UseAsClause<'tree>

Source§

impl<'tree> FromNode<'tree> for UseDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for UseInsteadOfClause<'tree>

Source§

impl<'tree> FromNode<'tree> for UseList<'tree>

Source§

impl<'tree> FromNode<'tree> for VarModifier<'tree>

Source§

impl<'tree> FromNode<'tree> for VariableName<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for VariadicPlaceholder<'tree>

Source§

impl<'tree> FromNode<'tree> for VariadicUnpacking<'tree>

Source§

impl<'tree> FromNode<'tree> for VisibilityModifier<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for YieldExpression<'tree>