Enum opaque_pointer::error::PointerError [−]
pub enum PointerError {
Null,
Invalid,
Utf8Error(Utf8Error),
}Expand description
Errors that can be detected by the functions of this crate.
Of course, invalid address can not be detected, then it’s unsafe yet.
Variants
Expand description
A pointer that was not previously lent to the FFI user.
Utf8Error(Utf8Error)Expand description
Trying to convert to &str a C string which content is not valid UTF-8.
Trait Implementations
impl Debug for PointerError
impl Debug for PointerErrorimpl Display for PointerError
impl Display for PointerErrorimpl Error for PointerError
impl Error for PointerErrorfn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<Utf8Error> for PointerError
impl From<Utf8Error> for PointerErrorimpl PartialEq<PointerError> for PointerError
impl PartialEq<PointerError> for PointerErrorfn eq(&self, other: &PointerError) -> bool
fn eq(&self, other: &PointerError) -> boolThis method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &PointerError) -> bool
fn ne(&self, other: &PointerError) -> boolThis method tests for !=.
impl Eq for PointerError
impl StructuralEq for PointerError
impl StructuralPartialEq for PointerError
Auto Trait Implementations
impl RefUnwindSafe for PointerError
impl Send for PointerError
impl Sync for PointerError
impl Unpin for PointerError
impl UnwindSafe for PointerError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more