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.
Required Methods§
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.