Skip to main content

LeafNode

Trait LeafNode 

Source
pub trait LeafNode<'tree>: FromNode<'tree> {
    // Required method
    fn text(&self) -> &'tree str;
}
Expand description

Implemented by every generated leaf type (identifiers, literals, etc.)

Required Methods§

Source

fn text(&self) -> &'tree str

Raw text of this node in the source, borrowed from src.

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> LeafNode<'tree> for AttributeTargetSpecifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for BooleanLiteral<'tree>

Source§

impl<'tree> LeafNode<'tree> for BreakStatement<'tree>

Source§

impl<'tree> LeafNode<'tree> for CharacterLiteralContent<'tree>

Source§

impl<'tree> LeafNode<'tree> for Comment<'tree>

Source§

impl<'tree> LeafNode<'tree> for ConstructorConstraint<'tree>

Source§

impl<'tree> LeafNode<'tree> for ContinueStatement<'tree>

Source§

impl<'tree> LeafNode<'tree> for Discard<'tree>

Source§

impl<'tree> LeafNode<'tree> for EmptyStatement<'tree>

Source§

impl<'tree> LeafNode<'tree> for EscapeSequence<'tree>

Source§

impl<'tree> LeafNode<'tree> for Identifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for ImplicitParameter<'tree>

Source§

impl<'tree> LeafNode<'tree> for ImplicitType<'tree>

Source§

impl<'tree> LeafNode<'tree> for IntegerLiteral<'tree>

Source§

impl<'tree> LeafNode<'tree> for InterpolationBrace<'tree>

Source§

impl<'tree> LeafNode<'tree> for InterpolationFormatClause<'tree>

Source§

impl<'tree> LeafNode<'tree> for InterpolationQuote<'tree>

Source§

impl<'tree> LeafNode<'tree> for InterpolationStart<'tree>

Source§

impl<'tree> LeafNode<'tree> for Modifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for NullLiteral<'tree>

Source§

impl<'tree> LeafNode<'tree> for PredefinedType<'tree>

Source§

impl<'tree> LeafNode<'tree> for PreprocArg<'tree>

Source§

impl<'tree> LeafNode<'tree> for PreprocNullable<'tree>

Source§

impl<'tree> LeafNode<'tree> for RawStringContent<'tree>

Source§

impl<'tree> LeafNode<'tree> for RawStringEnd<'tree>

Source§

impl<'tree> LeafNode<'tree> for RawStringStart<'tree>

Source§

impl<'tree> LeafNode<'tree> for RealLiteral<'tree>

Source§

impl<'tree> LeafNode<'tree> for ShebangDirective<'tree>

Source§

impl<'tree> LeafNode<'tree> for StringContent<'tree>

Source§

impl<'tree> LeafNode<'tree> for StringLiteralContent<'tree>

Source§

impl<'tree> LeafNode<'tree> for StringLiteralEncoding<'tree>

Source§

impl<'tree> LeafNode<'tree> for VerbatimStringLiteral<'tree>