pub trait Parse: Sized {
// Required method
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.