Enum naga::proc::typifier::ResolveError
source · pub enum ResolveError {
OutOfBoundsIndex {
expr: Handle<Expression>,
index: u32,
},
InvalidAccess {
expr: Handle<Expression>,
indexed: bool,
},
InvalidSubAccess {
ty: Handle<Type>,
indexed: bool,
},
InvalidScalar(Handle<Expression>),
InvalidVector(Handle<Expression>),
InvalidPointer(Handle<Expression>),
InvalidImage(Handle<Expression>),
FunctionNotDefined {
name: String,
},
FunctionReturnsVoid,
IncompatibleOperands(String),
FunctionArgumentNotFound(u32),
MissingSpecialType,
}
Variants§
OutOfBoundsIndex
InvalidAccess
InvalidSubAccess
InvalidScalar(Handle<Expression>)
InvalidVector(Handle<Expression>)
InvalidPointer(Handle<Expression>)
InvalidImage(Handle<Expression>)
FunctionNotDefined
FunctionReturnsVoid
IncompatibleOperands(String)
FunctionArgumentNotFound(u32)
MissingSpecialType
Trait Implementations§
source§impl Clone for ResolveError
impl Clone for ResolveError
source§fn clone(&self) -> ResolveError
fn clone(&self) -> ResolveError
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 moresource§impl Debug for ResolveError
impl Debug for ResolveError
source§impl Display for ResolveError
impl Display for ResolveError
source§impl Error for ResolveError
impl Error for ResolveError
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<ResolveError> for ConstExpressionError
impl From<ResolveError> for ConstExpressionError
source§fn from(source: ResolveError) -> Self
fn from(source: ResolveError) -> Self
Converts to this type from the input type.
source§impl From<ResolveError> for ExpressionError
impl From<ResolveError> for ExpressionError
source§fn from(source: ResolveError) -> Self
fn from(source: ResolveError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ResolveError
impl PartialEq for ResolveError
source§fn eq(&self, other: &ResolveError) -> bool
fn eq(&self, other: &ResolveError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResolveError
Auto Trait Implementations§
impl Freeze for ResolveError
impl RefUnwindSafe for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Unpin for ResolveError
impl UnwindSafe for ResolveError
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