Trait glsl_lang::parse::builder::IntoParseBuilderExt

source ·
pub trait IntoParseBuilderExt<'i> {
    type Lexer: LangLexer<'i>;

    // Required method
    fn builder<'o, 'c, 'p, T>(
        self,
    ) -> ParseBuilder<'i, 'o, 'c, 'p, Self::Lexer, T>
       where T: HasParser;
}
Expand description

Trait for creating parse builders from lexer inputs

Required Associated Types§

source

type Lexer: LangLexer<'i>

Type of the lexer associated with this input

Required Methods§

source

fn builder<'o, 'c, 'p, T>(self) -> ParseBuilder<'i, 'o, 'c, 'p, Self::Lexer, T>
where T: HasParser,

Create a builder for this lexer input

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'i> IntoParseBuilderExt<'i> for &'i str

source§

type Lexer = Lexer<'i>

source§

fn builder<'o, 'c, 'p, T>(self) -> ParseBuilder<'i, 'o, 'c, 'p, Self::Lexer, T>
where T: HasParser,

source§

impl<'r, 'p, F: FileSystem> IntoParseBuilderExt<'p> for File<'r, 'p, F>
where File<'r, 'p, F>: 'p,

source§

type Lexer = Lexer<'r, 'p, F>

source§

fn builder<'o, 'c, 'q, T>(self) -> ParseBuilder<'p, 'o, 'c, 'q, Self::Lexer, T>
where T: HasParser,

Implementors§