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

Source§

impl<'tree> LeafNode<'tree> for Boolean<'tree>

Source§

impl<'tree> LeafNode<'tree> for BottomType<'tree>

Source§

impl<'tree> LeafNode<'tree> for CastType<'tree>

Source§

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

Source§

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

Source§

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

Source§

impl<'tree> LeafNode<'tree> for FinalModifier<'tree>

Source§

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

Source§

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

Source§

impl<'tree> LeafNode<'tree> for HeredocStart<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for Name<'tree>

Source§

impl<'tree> LeafNode<'tree> for NowdocString<'tree>

Source§

impl<'tree> LeafNode<'tree> for Null<'tree>

Source§

impl<'tree> LeafNode<'tree> for Operation<'tree>

Source§

impl<'tree> LeafNode<'tree> for PhpEndTag<'tree>

Source§

impl<'tree> LeafNode<'tree> for PhpTag<'tree>

Source§

impl<'tree> LeafNode<'tree> for PrimitiveType<'tree>

Source§

impl<'tree> LeafNode<'tree> for ReadonlyModifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for ReferenceModifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for RelativeScope<'tree>

Source§

impl<'tree> LeafNode<'tree> for StaticModifier<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for Text<'tree>

Source§

impl<'tree> LeafNode<'tree> for VarModifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for VariadicPlaceholder<'tree>