pub enum PreprocessError {
MissingVersionHeader,
IOError(PathBuf, Error),
EncodingError(PathBuf),
UnexpectedEof,
UnexpectedEol(usize),
PragmaParseError(String),
DuplicatePragmaError(ShortString),
UnknownImageFormat,
InvalidStage,
}
Expand description
Error type for source preprocessing.
Variants§
MissingVersionHeader
The version header was not found in the source file.
IOError(PathBuf, Error)
An IO error occurred when reading the source file.
EncodingError(PathBuf)
A known encoding was not found for the file.
UnexpectedEof
Unexpected EOF when reading the source file.
UnexpectedEol(usize)
Unexpected end of line when reading the source file.
PragmaParseError(String)
An error occurred when parsing a pragma statement.
DuplicatePragmaError(ShortString)
The given pragma was declared multiple times with differing values.
UnknownImageFormat
The image format requested by the shader was unknown or not supported.
InvalidStage
The stage declared by the shader source was not vertex
or fragment
.
Trait Implementations§
Source§impl Debug for PreprocessError
impl Debug for PreprocessError
Source§impl Display for PreprocessError
impl Display for PreprocessError
Source§impl Error for PreprocessError
impl Error for PreprocessError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Infallible> for PreprocessError
impl From<Infallible> for PreprocessError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PreprocessError
impl !RefUnwindSafe for PreprocessError
impl Send for PreprocessError
impl Sync for PreprocessError
impl Unpin for PreprocessError
impl !UnwindSafe for PreprocessError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more