#[non_exhaustive]pub enum InvalidHandleError {
NullHandle(&'static str),
NullPointer(&'static str),
ZeroSize(&'static str),
InvalidValue {
field: &'static str,
},
}Expand description
Returned from try_from_raw constructors when the caller-supplied
payload violates an invariant the newtype enforces (e.g. a null
VkImage, a zero-sized D3D12 buffer).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for InvalidHandleError
impl Clone for InvalidHandleError
impl Copy for InvalidHandleError
Source§impl Debug for InvalidHandleError
impl Debug for InvalidHandleError
Source§impl Display for InvalidHandleError
impl Display for InvalidHandleError
impl Eq for InvalidHandleError
Source§impl Error for InvalidHandleError
impl Error for InvalidHandleError
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 PartialEq for InvalidHandleError
impl PartialEq for InvalidHandleError
impl StructuralPartialEq for InvalidHandleError
Auto Trait Implementations§
impl Freeze for InvalidHandleError
impl RefUnwindSafe for InvalidHandleError
impl Send for InvalidHandleError
impl Sync for InvalidHandleError
impl Unpin for InvalidHandleError
impl UnsafeUnpin for InvalidHandleError
impl UnwindSafe for InvalidHandleError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.