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".

Implementors§

Source§

impl<'tree> FromNode<'tree> for AccessCall<'tree>

Source§

impl<'tree> FromNode<'tree> for AccessCallKey<'tree>

Source§

impl<'tree> FromNode<'tree> for AccessCallTarget<'tree>

Source§

impl<'tree> FromNode<'tree> for AfterBlock<'tree>

Source§

impl<'tree> FromNode<'tree> for AfterBlockChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for Alias<'tree>

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for Atom<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for BinaryOperatorLeft<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for BinaryOperatorRight<'tree>

Source§

impl<'tree> FromNode<'tree> for Bitstring<'tree>

Source§

impl<'tree> FromNode<'tree> for BitstringChildren<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for Body<'tree>

Source§

impl<'tree> FromNode<'tree> for BodyChildren<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for CallChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for CallTarget<'tree>

Source§

impl<'tree> FromNode<'tree> for CatchBlock<'tree>

Source§

impl<'tree> FromNode<'tree> for CatchBlockChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for Char<'tree>

Source§

impl<'tree> FromNode<'tree> for Charlist<'tree>

Source§

impl<'tree> FromNode<'tree> for CharlistChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for CharlistQuotedEnd

Source§

impl<'tree> FromNode<'tree> for CharlistQuotedStart

Source§

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

Source§

impl<'tree> FromNode<'tree> for DoBlock<'tree>

Source§

impl<'tree> FromNode<'tree> for DoBlockChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for Dot<'tree>

Source§

impl<'tree> FromNode<'tree> for DotLeft<'tree>

Source§

impl<'tree> FromNode<'tree> for DotOperator

Source§

impl<'tree> FromNode<'tree> for DotRight<'tree>

Source§

impl<'tree> FromNode<'tree> for ElseBlock<'tree>

Source§

impl<'tree> FromNode<'tree> for ElseBlockChildren<'tree>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for InterpolationChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for Keyword<'tree>

Source§

impl<'tree> FromNode<'tree> for Keywords<'tree>

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for Map<'tree>

Source§

impl<'tree> FromNode<'tree> for MapChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for MapContent<'tree>

Source§

impl<'tree> FromNode<'tree> for MapContentChildren<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for OperatorIdentifier<'tree>

Source§

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

Source§

impl<'tree> FromNode<'tree> for PairKey<'tree>

Source§

impl<'tree> FromNode<'tree> for PairValue<'tree>

Source§

impl<'tree> FromNode<'tree> for QuotedAtom<'tree>

Source§

impl<'tree> FromNode<'tree> for QuotedAtomChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for QuotedAtomQuotedEnd

Source§

impl<'tree> FromNode<'tree> for QuotedAtomQuotedStart

Source§

impl<'tree> FromNode<'tree> for QuotedContent<'tree>

Source§

impl<'tree> FromNode<'tree> for QuotedKeyword<'tree>

Source§

impl<'tree> FromNode<'tree> for QuotedKeywordChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for QuotedKeywordQuotedEnd

Source§

impl<'tree> FromNode<'tree> for QuotedKeywordQuotedStart

Source§

impl<'tree> FromNode<'tree> for RescueBlock<'tree>

Source§

impl<'tree> FromNode<'tree> for RescueBlockChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for Sigil<'tree>

Source§

impl<'tree> FromNode<'tree> for SigilChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for SigilModifiers<'tree>

Source§

impl<'tree> FromNode<'tree> for SigilName<'tree>

Source§

impl<'tree> FromNode<'tree> for SigilQuotedEnd

Source§

impl<'tree> FromNode<'tree> for SigilQuotedStart

Source§

impl<'tree> FromNode<'tree> for Source<'tree>

Source§

impl<'tree> FromNode<'tree> for SourceChildren<'tree>

Source§

impl<'tree> FromNode<'tree> for StabClause<'tree>

Source§

impl<'tree> FromNode<'tree> for StabClauseLeft<'tree>

Source§

impl<'tree> FromNode<'tree> for StabClauseOperator

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for StringQuotedEnd

Source§

impl<'tree> FromNode<'tree> for StringQuotedStart

Source§

impl<'tree> FromNode<'tree> for Struct<'tree>

Source§

impl<'tree> FromNode<'tree> for StructChildren<'tree>

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> FromNode<'tree> for UnaryOperatorOperand<'tree>

Source§

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