pub enum CDropError {
NullPointer(UnexpectedNullPointerError),
Other(Box<dyn Error + Send + Sync>),
}Variants§
Trait Implementations§
Source§impl Debug for CDropError
impl Debug for CDropError
Source§impl Display for CDropError
impl Display for CDropError
Source§impl Error for CDropError
impl Error for CDropError
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<UnexpectedNullPointerError> for CDropError
impl From<UnexpectedNullPointerError> for CDropError
Source§fn from(source: UnexpectedNullPointerError) -> Self
fn from(source: UnexpectedNullPointerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CDropError
impl !RefUnwindSafe for CDropError
impl Send for CDropError
impl Sync for CDropError
impl Unpin for CDropError
impl !UnwindSafe for CDropError
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> RawBorrow<T> for T
impl<T> RawBorrow<T> for T
Source§unsafe fn raw_borrow<'a>(
input: *const T,
) -> Result<&'a T, UnexpectedNullPointerError>
unsafe fn raw_borrow<'a>( input: *const T, ) -> Result<&'a T, UnexpectedNullPointerError>
Get a reference on the value behind the pointer or return an error if the pointer is
null. Read moreSource§impl<T> RawBorrowMut<T> for T
impl<T> RawBorrowMut<T> for T
Source§unsafe fn raw_borrow_mut<'a>(
input: *mut T,
) -> Result<&'a mut T, UnexpectedNullPointerError>
unsafe fn raw_borrow_mut<'a>( input: *mut T, ) -> Result<&'a mut T, UnexpectedNullPointerError>
Get a mutable reference on the value behind the pointer or return an error if the pointer is
null. Read more