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

Source§

impl<'tree> LeafNode<'tree> for ColorValue<'tree>

Source§

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

Source§

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

Source§

impl<'tree> LeafNode<'tree> for FeatureName<'tree>

Source§

impl<'tree> LeafNode<'tree> for From<'tree>

Source§

impl<'tree> LeafNode<'tree> for FunctionName<'tree>

Source§

impl<'tree> LeafNode<'tree> for IdName<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for Important<'tree>

Source§

impl<'tree> LeafNode<'tree> for ImportantValue<'tree>

Source§

impl<'tree> LeafNode<'tree> for JsComment<'tree>

Source§

impl<'tree> LeafNode<'tree> for KeyframesName<'tree>

Source§

impl<'tree> LeafNode<'tree> for KeywordQuery<'tree>

Source§

impl<'tree> LeafNode<'tree> for NamespaceName<'tree>

Source§

impl<'tree> LeafNode<'tree> for NestingSelector<'tree>

Source§

impl<'tree> LeafNode<'tree> for PlainValue<'tree>

Source§

impl<'tree> LeafNode<'tree> for PropertyName<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for TagName<'tree>

Source§

impl<'tree> LeafNode<'tree> for To<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for UniversalSelector<'tree>