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

Source§

impl<'tree> FromNode<'tree> for AssignmentStatementOperator

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for BracketIndexExpressionTable<'tree>

Source§

impl<'tree> FromNode<'tree> for ChunkChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for CommentEnd

Source§

impl<'tree> FromNode<'tree> for CommentStart

Source§

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

Source§

impl<'tree> FromNode<'tree> for DotIndexExpressionTable<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for FieldName<'tree>

Source§

impl<'tree> FromNode<'tree> for FieldOperator

Source§

impl<'tree> FromNode<'tree> for ForGenericClauseChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for ForNumericClauseOperator

Source§

impl<'tree> FromNode<'tree> for ForStatementClause<'tree>

Source§

impl<'tree> FromNode<'tree> for FunctionCallName<'tree>

Source§

impl<'tree> FromNode<'tree> for FunctionDeclarationName<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for MethodIndexExpressionTable<'tree>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for VariableDeclarationChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for AssignmentStatement<'tree>

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for BracketIndexExpression<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for Chunk<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for CommentContent<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for DotIndexExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for ElseStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for ElseifStatement<'tree>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for Field<'tree>

Source§

impl<'tree> FromNode<'tree> for ForGenericClause<'tree>

Source§

impl<'tree> FromNode<'tree> for ForNumericClause<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for FunctionCall<'tree>

Source§

impl<'tree> FromNode<'tree> for FunctionDeclaration<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for HashBangLine<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for ImplicitVariableDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for LabelStatement<'tree>

Source§

impl<'tree> FromNode<'tree> for MethodIndexExpression<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for Number<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for RepeatStatement<'tree>

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for TableConstructor<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for VarargExpression<'tree>

Source§

impl<'tree> FromNode<'tree> for VariableDeclaration<'tree>

Source§

impl<'tree> FromNode<'tree> for VariableList<'tree>

Source§

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