pub trait Parse: HasParser {
// Required methods
fn parse<'i, L: LangLexer<'i>>(
source: L::Input,
) -> Result<Self, ParseError<<L::Iter as HasLexerError>::Error>>;
fn parse_with_options<'i, L: LangLexer<'i>>(
source: L::Input,
opts: &ParseOptions,
) -> ParseResult<L::Iter, <L::Iter as HasLexerError>::Error, Self>;
fn parse_with_context<'i, L: LangLexer<'i>>(
source: L::Input,
ctx: &ParseContext,
) -> ParseResult<L::Iter, <L::Iter as HasLexerError>::Error, Self>;
}
Expand description
GLSL language parsing functions
Required Methods§
Sourcefn parse<'i, L: LangLexer<'i>>(
source: L::Input,
) -> Result<Self, ParseError<<L::Iter as HasLexerError>::Error>>
fn parse<'i, L: LangLexer<'i>>( source: L::Input, ) -> Result<Self, ParseError<<L::Iter as HasLexerError>::Error>>
Parse the input source
Sourcefn parse_with_options<'i, L: LangLexer<'i>>(
source: L::Input,
opts: &ParseOptions,
) -> ParseResult<L::Iter, <L::Iter as HasLexerError>::Error, Self>
fn parse_with_options<'i, L: LangLexer<'i>>( source: L::Input, opts: &ParseOptions, ) -> ParseResult<L::Iter, <L::Iter as HasLexerError>::Error, Self>
Parse the input source with the given options
Sourcefn parse_with_context<'i, L: LangLexer<'i>>(
source: L::Input,
ctx: &ParseContext,
) -> ParseResult<L::Iter, <L::Iter as HasLexerError>::Error, Self>
fn parse_with_context<'i, L: LangLexer<'i>>( source: L::Input, ctx: &ParseContext, ) -> ParseResult<L::Iter, <L::Iter as HasLexerError>::Error, Self>
Parse the input source with the given context
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.