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

Implementors§

Source§

impl<'tree> LeafNode<'tree> for AbstractFamily<'tree>

Source§

impl<'tree> LeafNode<'tree> for AllNames<'tree>

Source§

impl<'tree> LeafNode<'tree> for CallingConvention<'tree>

Source§

impl<'tree> LeafNode<'tree> for Char<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for Constructor<'tree>

Source§

impl<'tree> LeafNode<'tree> for ConstructorOperator<'tree>

Source§

impl<'tree> LeafNode<'tree> for Cpp<'tree>

Source§

impl<'tree> LeafNode<'tree> for DerivingStrategy<'tree>

Source§

impl<'tree> LeafNode<'tree> for EmptyList<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for Haddock<'tree>

Source§

impl<'tree> LeafNode<'tree> for ImplicitVariable<'tree>

Source§

impl<'tree> LeafNode<'tree> for ImportPackage<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for Label<'tree>

Source§

impl<'tree> LeafNode<'tree> for ModuleId<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for Namespace<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for Pragma<'tree>

Source§

impl<'tree> LeafNode<'tree> for PrefixList<'tree>

Source§

impl<'tree> LeafNode<'tree> for PrefixTuple<'tree>

Source§

impl<'tree> LeafNode<'tree> for PrefixUnboxedSum<'tree>

Source§

impl<'tree> LeafNode<'tree> for PrefixUnboxedTuple<'tree>

Source§

impl<'tree> LeafNode<'tree> for QuasiquoteBody<'tree>

Source§

impl<'tree> LeafNode<'tree> for Safety<'tree>

Source§

impl<'tree> LeafNode<'tree> for Star<'tree>

Source§

impl<'tree> LeafNode<'tree> for String<'tree>

Source§

impl<'tree> LeafNode<'tree> for TypeRole<'tree>

Source§

impl<'tree> LeafNode<'tree> for UnboxedUnit<'tree>

Source§

impl<'tree> LeafNode<'tree> for Unit<'tree>

Source§

impl<'tree> LeafNode<'tree> for Variable<'tree>

Source§

impl<'tree> LeafNode<'tree> for Wildcard<'tree>