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

Source§

impl<'tree> LeafNode<'tree> for ClassVariable<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for Constant<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for Encoding<'tree>

Source§

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

Source§

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

Source§

impl<'tree> LeafNode<'tree> for File<'tree>

Source§

impl<'tree> LeafNode<'tree> for Float<'tree>

Source§

impl<'tree> LeafNode<'tree> for ForwardArgument<'tree>

Source§

impl<'tree> LeafNode<'tree> for ForwardParameter<'tree>

Source§

impl<'tree> LeafNode<'tree> for GlobalVariable<'tree>

Source§

impl<'tree> LeafNode<'tree> for HashKeySymbol<'tree>

Source§

impl<'tree> LeafNode<'tree> for HashSplatNil<'tree>

Source§

impl<'tree> LeafNode<'tree> for HeredocBeginning<'tree>

Source§

impl<'tree> LeafNode<'tree> for HeredocContent<'tree>

Source§

impl<'tree> LeafNode<'tree> for HeredocEnd<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for InstanceVariable<'tree>

Source§

impl<'tree> LeafNode<'tree> for Integer<'tree>

Source§

impl<'tree> LeafNode<'tree> for Line<'tree>

Source§

impl<'tree> LeafNode<'tree> for Nil<'tree>

Source§

impl<'tree> LeafNode<'tree> for Operator<'tree>

Source§

impl<'tree> LeafNode<'tree> for SelfType<'tree>

Source§

impl<'tree> LeafNode<'tree> for SimpleSymbol<'tree>

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> LeafNode<'tree> for Uninterpreted<'tree>