pub struct UnexpectedNullPointerError;Expand description
Returned when a raw pointer was expected to be non-null but was null.
Trait Implementations§
Source§impl Debug for UnexpectedNullPointerError
impl Debug for UnexpectedNullPointerError
Source§impl Display for UnexpectedNullPointerError
impl Display for UnexpectedNullPointerError
Source§impl Error for UnexpectedNullPointerError
impl Error for UnexpectedNullPointerError
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<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.
Source§impl From<UnexpectedNullPointerError> for AsRustError
impl From<UnexpectedNullPointerError> for AsRustError
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 UnexpectedNullPointerError
impl RefUnwindSafe for UnexpectedNullPointerError
impl Send for UnexpectedNullPointerError
impl Sync for UnexpectedNullPointerError
impl Unpin for UnexpectedNullPointerError
impl UnsafeUnpin for UnexpectedNullPointerError
impl UnwindSafe for UnexpectedNullPointerError
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>
Source§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>
Borrow the value behind
input mutably, or return
UnexpectedNullPointerError if it is null. Read more