Enum librashader::presets::ParsePresetError
source · pub enum ParsePresetError {
LexerError {
offset: usize,
row: u32,
col: usize,
},
ParserError {
offset: usize,
row: u32,
col: usize,
kind: ParseErrorKind,
},
InvalidScaleType(String),
ExceededReferenceDepth,
RootPathWasNotAbsolute,
IOError(PathBuf, Error),
Utf8Error(Vec<u8>),
}
Available on crate feature
presets
only.Expand description
Error type for preset parsing.
Variants§
LexerError
An error occurred when tokenizing the preset file.
ParserError
An error occurred when parsing the preset file.
InvalidScaleType(String)
The scale type was invalid.
ExceededReferenceDepth
The preset reference depth exceeded 16.
RootPathWasNotAbsolute
An absolute path could not be found to resolve the shader preset against.
IOError(PathBuf, Error)
An IO error occurred when reading the shader preset.
Utf8Error(Vec<u8>)
The shader preset did not contain valid UTF-8 bytes.
Trait Implementations§
source§impl Debug for ParsePresetError
impl Debug for ParsePresetError
source§impl Display for ParsePresetError
impl Display for ParsePresetError
source§impl Error for ParsePresetError
impl Error for ParsePresetError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParsePresetError> for FilterChainError
impl From<ParsePresetError> for FilterChainError
source§fn from(source: ParsePresetError) -> FilterChainError
fn from(source: ParsePresetError) -> FilterChainError
Converts to this type from the input type.
source§impl From<ParsePresetError> for FilterChainError
impl From<ParsePresetError> for FilterChainError
source§fn from(source: ParsePresetError) -> FilterChainError
fn from(source: ParsePresetError) -> FilterChainError
Converts to this type from the input type.
source§impl From<ParsePresetError> for FilterChainError
impl From<ParsePresetError> for FilterChainError
source§fn from(source: ParsePresetError) -> FilterChainError
fn from(source: ParsePresetError) -> FilterChainError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ParsePresetError
impl Send for ParsePresetError
impl Sync for ParsePresetError
impl Unpin for ParsePresetError
impl !UnwindSafe for ParsePresetError
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