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

Source§

impl<'tree> LeafNode<'tree> for Auto<'tree>

Source§

impl<'tree> LeafNode<'tree> for BreakStatement<'tree>

Source§

impl<'tree> LeafNode<'tree> for Character<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for ContinueStatement<'tree>

Source§

impl<'tree> LeafNode<'tree> for DefaultMethodClause<'tree>

Source§

impl<'tree> LeafNode<'tree> for DeleteMethodClause<'tree>

Source§

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

Source§

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

Source§

impl<'tree> LeafNode<'tree> for FieldIdentifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for GnuAsmQualifier<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for LambdaDefaultCapture<'tree>

Source§

impl<'tree> LeafNode<'tree> for LiteralSuffix<'tree>

Source§

impl<'tree> LeafNode<'tree> for MsCallModifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for MsRestrictModifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for MsSignedPtrModifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for MsUnalignedPtrModifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for MsUnsignedPtrModifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for NamespaceIdentifier<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for NumberLiteral<'tree>

Source§

impl<'tree> LeafNode<'tree> for PreprocArg<'tree>

Source§

impl<'tree> LeafNode<'tree> for PreprocDirective<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for PureVirtualClause<'tree>

Source§

impl<'tree> LeafNode<'tree> for RawStringContent<'tree>

Source§

impl<'tree> LeafNode<'tree> for RawStringDelimiter<'tree>

Source§

impl<'tree> LeafNode<'tree> for RefQualifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for SehLeaveStatement<'tree>

Source§

impl<'tree> LeafNode<'tree> for StatementIdentifier<'tree>

Source§

impl<'tree> LeafNode<'tree> for StorageClassSpecifier<'tree>

Source§

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

Source§

impl<'tree> LeafNode<'tree> for SystemLibString<'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 VirtualSpecifier<'tree>