Enum naga_oil::compose::error::ComposerErrorInner
source · pub enum ComposerErrorInner {
Show 21 variants
ImportParseError(String, usize),
ImportNotFound(String, usize),
WgslParseError(ParseError),
WgslBackError(Error),
HeaderValidationError(WithSpan<ValidationError>),
ShaderValidationError(WithSpan<ValidationError>),
NotEnoughEndIfs(usize),
TooManyEndIfs(usize),
ElseWithoutCondition(usize),
UnknownShaderDefOperator {
pos: usize,
operator: String,
},
UnknownShaderDef {
pos: usize,
shader_def_name: String,
},
InvalidShaderDefComparisonValue {
pos: usize,
shader_def_name: String,
expected: String,
value: String,
},
InconsistentShaderDefValue {
def: String,
},
NoModuleName,
DecorationInSource(Range<usize>),
GlslInvalidVersion(usize),
RedirectError(RedirectError),
OverrideNotVirtual {
name: String,
pos: usize,
},
InvalidIdentifier {
original: String,
at: Span,
},
InvalidShaderDefDefinitionValue {
name: String,
value: String,
pos: usize,
},
DefineInModule(usize),
}
Variants§
ImportParseError(String, usize)
ImportNotFound(String, usize)
WgslParseError(ParseError)
WgslBackError(Error)
HeaderValidationError(WithSpan<ValidationError>)
ShaderValidationError(WithSpan<ValidationError>)
NotEnoughEndIfs(usize)
TooManyEndIfs(usize)
ElseWithoutCondition(usize)
UnknownShaderDefOperator
UnknownShaderDef
InvalidShaderDefComparisonValue
InconsistentShaderDefValue
NoModuleName
DecorationInSource(Range<usize>)
GlslInvalidVersion(usize)
RedirectError(RedirectError)
OverrideNotVirtual
InvalidIdentifier
InvalidShaderDefDefinitionValue
DefineInModule(usize)
Trait Implementations§
source§impl Debug for ComposerErrorInner
impl Debug for ComposerErrorInner
source§impl Display for ComposerErrorInner
impl Display for ComposerErrorInner
source§impl Error for ComposerErrorInner
impl Error for ComposerErrorInner
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<RedirectError> for ComposerErrorInner
impl From<RedirectError> for ComposerErrorInner
source§fn from(source: RedirectError) -> Self
fn from(source: RedirectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComposerErrorInner
impl RefUnwindSafe for ComposerErrorInner
impl Send for ComposerErrorInner
impl Sync for ComposerErrorInner
impl Unpin for ComposerErrorInner
impl UnwindSafe for ComposerErrorInner
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