Enum naga::valid::WidthError
source · pub enum WidthError {
Invalid(ScalarKind, Bytes),
MissingCapability {
name: &'static str,
flag: &'static str,
},
Abstract,
}
Variants§
Trait Implementations§
source§impl Clone for WidthError
impl Clone for WidthError
source§fn clone(&self) -> WidthError
fn clone(&self) -> WidthError
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 WidthError
impl Debug for WidthError
source§impl Display for WidthError
impl Display for WidthError
source§impl Error for WidthError
impl Error for WidthError
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<WidthError> for ConstExpressionError
impl From<WidthError> for ConstExpressionError
source§fn from(source: WidthError) -> Self
fn from(source: WidthError) -> Self
Converts to this type from the input type.
source§impl From<WidthError> for LiteralError
impl From<WidthError> for LiteralError
source§fn from(source: WidthError) -> Self
fn from(source: WidthError) -> Self
Converts to this type from the input type.
source§impl From<WidthError> for TypeError
impl From<WidthError> for TypeError
source§fn from(source: WidthError) -> Self
fn from(source: WidthError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for WidthError
impl Send for WidthError
impl Sync for WidthError
impl Unpin for WidthError
impl UnwindSafe for WidthError
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