Trait glsl::parser::Parse[][src]

pub trait Parse: Sized {
    fn parse<B>(source: B) -> Result<Self, ParseError>
    where
        B: AsRef<str>
; }
Expand description

Class of types that can be parsed.

This trait exposes the Parse::parse function that can be used to parse GLSL types.

The methods from this trait are the standard way to parse data into GLSL ASTs.

Required methods

Parse from a string slice.

Implementors