Trait glsl_lang::parse::Parse [−][src]
GLSL language parsing capability
Associated Types
type Parser: LangParser
[src]
Type of the parser to create
Required methods
fn parse_with_options(
source: &str,
opts: &ParseContext
) -> Result<(Self, ParseContext), ParseError>
[src]
source: &str,
opts: &ParseContext
) -> Result<(Self, ParseContext), ParseError>
Parse the input source with the given options
fn parse_with_parser<'i>(
source: &'i str,
opts: &ParseContext,
parser: &Self::Parser
) -> Result<(Self, ParseContext), ParseError>
[src]
source: &'i str,
opts: &ParseContext,
parser: &Self::Parser
) -> Result<(Self, ParseContext), ParseError>
Parse the input source with the given options and already instantiated parser
Provided methods
fn parse(source: &str) -> Result<Self, ParseError>
[src]
Parse the input source
Implementors
impl Parse for TranslationUnit
[src]
type Parser = TranslationUnitParser
fn parse_with_options<'i>(
source: &'i str,
opts: &ParseContext
) -> Result<(Self, ParseContext), ParseError>
[src]
source: &'i str,
opts: &ParseContext
) -> Result<(Self, ParseContext), ParseError>
fn parse_with_parser<'i>(
source: &'i str,
opts: &ParseContext,
parser: &TranslationUnitParser
) -> Result<(Self, ParseContext), ParseError>
[src]
source: &'i str,
opts: &ParseContext,
parser: &TranslationUnitParser
) -> Result<(Self, ParseContext), ParseError>