Enum naga::valid::function::AtomicError
source · pub enum AtomicError {
InvalidPointer(Handle<Expression>),
InvalidAddressSpace(AddressSpace),
InvalidOperand(Handle<Expression>),
InvalidResultExpression(Handle<Expression>),
ResultExpressionExchange(Handle<Expression>),
ResultExpressionNotExchange(Handle<Expression>),
ResultTypeMismatch(Handle<Expression>),
MissingReturnValue,
MissingCapability(Capabilities),
ResultAlreadyPopulated(Handle<Expression>),
}
Variants§
InvalidPointer(Handle<Expression>)
InvalidAddressSpace(AddressSpace)
InvalidOperand(Handle<Expression>)
InvalidResultExpression(Handle<Expression>)
ResultExpressionExchange(Handle<Expression>)
ResultExpressionNotExchange(Handle<Expression>)
ResultTypeMismatch(Handle<Expression>)
MissingReturnValue
MissingCapability(Capabilities)
ResultAlreadyPopulated(Handle<Expression>)
Trait Implementations§
source§impl Clone for AtomicError
impl Clone for AtomicError
source§fn clone(&self) -> AtomicError
fn clone(&self) -> AtomicError
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 AtomicError
impl Debug for AtomicError
source§impl Display for AtomicError
impl Display for AtomicError
source§impl Error for AtomicError
impl Error for AtomicError
1.30.0 · 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<AtomicError> for FunctionError
impl From<AtomicError> for FunctionError
source§fn from(source: AtomicError) -> Self
fn from(source: AtomicError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AtomicError
impl RefUnwindSafe for AtomicError
impl Send for AtomicError
impl Sync for AtomicError
impl Unpin for AtomicError
impl UnwindSafe for AtomicError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)