Skip to main content

Syntax

Trait Syntax 

Source
pub trait Syntax: Syntax + 'static {
    type Root: Parseable<Syntax = Self>;

    // Required methods
    fn static_text(self) -> Option<&'static str>;
    fn from_raw(raw: RawSyntaxKind) -> Self;
    fn into_raw(self) -> RawSyntaxKind;
    fn parser<'src, 'cache, 'interner, 'borrow, 'extra, Err>(
        self,
    ) -> impl BuilderParser<'src, 'cache, 'interner, 'borrow, (), Err, Self>
       where Err: Error<'src, &'src str> + 'extra,
             'interner: 'cache,
             'borrow: 'interner,
             'src: 'extra,
             'cache: 'extra;
}

Required Associated Types§

Source

type Root: Parseable<Syntax = Self>

Required Methods§

Source

fn static_text(self) -> Option<&'static str>

Source

fn from_raw(raw: RawSyntaxKind) -> Self

Source

fn into_raw(self) -> RawSyntaxKind

Source

fn parser<'src, 'cache, 'interner, 'borrow, 'extra, Err>( self, ) -> impl BuilderParser<'src, 'cache, 'interner, 'borrow, (), Err, Self>
where Err: Error<'src, &'src str> + 'extra, 'interner: 'cache, 'borrow: 'interner, 'src: 'extra, 'cache: 'extra,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§