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)>
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<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