[−][src]Enum emacs::ErrorKind
Error types generic to all Rust dynamic modules.
This list is intended to grow over time and it is not recommended to exhaustively match against it.
Variants
An error signaled by Lisp code.
A non-local exit thrown by Lisp code.
An error indicating that the given value is not a user-ptr
of the expected type.
Examples:
#[defun] fn wrap(x: i64) -> Result<RefCell<i64>> { Ok(RefCell::new(x)) } #[defun] fn wrap_f(x: f64) -> Result<RefCell<f64>> { Ok(RefCell::new(x)) } #[defun] fn unwrap(r: &RefCell<i64>) -> Result<i64> { Ok(*r.try_borrow()?) }
(unwrap 7) ; *** Eval error *** Wrong type argument: user-ptrp, 7
(unwrap (wrap 7)) ; 7
(unwrap (wrap-f 7)) ; *** Eval error *** Wrong type user-ptr: "expected: RefCell"
Fields of WrongTypeUserPtr
expected: &'static str
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
[src]
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&(dyn Fail + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
[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.
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>,