Enum glsl::parser::ParseResult
source · pub enum ParseResult<T> {
Ok(T),
Err(ParseError),
Incomplete(Needed),
}
Expand description
Parse result. It can either be parsed, incomplete or errored.
Variants§
Ok(T)
The source was successfully parsed.
Err(ParseError)
The parser failed with a ParseError
.
Incomplete(Needed)
More data is required to go on.
Trait Implementations§
source§impl<T: Clone> Clone for ParseResult<T>
impl<T: Clone> Clone for ParseResult<T>
source§fn clone(&self) -> ParseResult<T>
fn clone(&self) -> ParseResult<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more