Trait glsl_lang::parse::DefaultParse
source · pub trait DefaultParse: Parse {
// Required methods
fn parse<'i>(
source: <DefaultLexer<'i> as LangLexer<'i>>::Input,
) -> Result<Self, ParseError<<<DefaultLexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error>>;
fn parse_with_options<'i>(
source: <DefaultLexer<'i> as LangLexer<'i>>::Input,
opts: &ParseOptions,
) -> ParseResult<<DefaultLexer<'i> as LangLexer<'i>>::Iter, <<DefaultLexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error, Self>;
fn parse_with_context<'i>(
source: <DefaultLexer<'i> as LangLexer<'i>>::Input,
ctx: &ParseContext,
) -> ParseResult<<DefaultLexer<'i> as LangLexer<'i>>::Iter, <<DefaultLexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error, Self>;
}
Expand description
GLSL parsing with the default lexer
Required Methods§
sourcefn parse<'i>(
source: <DefaultLexer<'i> as LangLexer<'i>>::Input,
) -> Result<Self, ParseError<<<DefaultLexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error>>
fn parse<'i>( source: <DefaultLexer<'i> as LangLexer<'i>>::Input, ) -> Result<Self, ParseError<<<DefaultLexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error>>
Parse the input source
sourcefn parse_with_options<'i>(
source: <DefaultLexer<'i> as LangLexer<'i>>::Input,
opts: &ParseOptions,
) -> ParseResult<<DefaultLexer<'i> as LangLexer<'i>>::Iter, <<DefaultLexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error, Self>
fn parse_with_options<'i>( source: <DefaultLexer<'i> as LangLexer<'i>>::Input, opts: &ParseOptions, ) -> ParseResult<<DefaultLexer<'i> as LangLexer<'i>>::Iter, <<DefaultLexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error, Self>
Parse the input source with the given options
sourcefn parse_with_context<'i>(
source: <DefaultLexer<'i> as LangLexer<'i>>::Input,
ctx: &ParseContext,
) -> ParseResult<<DefaultLexer<'i> as LangLexer<'i>>::Iter, <<DefaultLexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error, Self>
fn parse_with_context<'i>( source: <DefaultLexer<'i> as LangLexer<'i>>::Input, ctx: &ParseContext, ) -> ParseResult<<DefaultLexer<'i> as LangLexer<'i>>::Iter, <<DefaultLexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error, Self>
Parse the input source with the given context
Object Safety§
This trait is not object safe.