Enum opaque_pointer::error::PointerError [−]
pub enum PointerError {
Null,
Invalid,
Utf8Error(Utf8Error),
}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
A pointer that was not previously lent to the FFI user.
Utf8Error(Utf8Error)Trying to convert to &str a C string which content is not valid UTF-8.
Trait Implementations
impl Debug for PointerError
impl Display for PointerError
impl Eq for PointerError
impl Error for PointerError
fn source(&self) -> Option<&(dyn Error + 'static)>
pub fn backtrace(&self) -> Option<&Backtrace>[src]
pub fn description(&self) -> &str1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>1.0.0[src]
impl From<Utf8Error> for PointerError
impl PartialEq<PointerError> for PointerError
fn eq(&self, other: &PointerError) -> bool
fn ne(&self, other: &PointerError) -> bool
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,