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

Source§

impl<'tree> LeafNode<'tree> for BinaryIntegerLiteral<'tree>

Source§

impl<'tree> LeafNode<'tree> for BlockComment<'tree>

Source§

impl<'tree> LeafNode<'tree> for BooleanType<'tree>

Source§

impl<'tree> LeafNode<'tree> for CharacterLiteral<'tree>

Source§

impl<'tree> LeafNode<'tree> for DecimalFloatingPointLiteral<'tree>

Source§

impl<'tree> LeafNode<'tree> for DecimalIntegerLiteral<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for False<'tree>

Source§

impl<'tree> LeafNode<'tree> for FloatingPointType<'tree>

Source§

impl<'tree> LeafNode<'tree> for HexFloatingPointLiteral<'tree>

Source§

impl<'tree> LeafNode<'tree> for HexIntegerLiteral<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for IntegralType<'tree>

Source§

impl<'tree> LeafNode<'tree> for LineComment<'tree>

Source§

impl<'tree> LeafNode<'tree> for MultilineStringFragment<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for OctalIntegerLiteral<'tree>

Source§

impl<'tree> LeafNode<'tree> for RequiresModifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for StringFragment<'tree>

Source§

impl<'tree> LeafNode<'tree> for Super<'tree>

Source§

impl<'tree> LeafNode<'tree> for This<'tree>

Source§

impl<'tree> LeafNode<'tree> for True<'tree>

Source§

impl<'tree> LeafNode<'tree> for TypeIdentifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for UnderscorePattern<'tree>

Source§

impl<'tree> LeafNode<'tree> for VoidType<'tree>