[−][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
[src]
impl Send for ErrorKind
[src]
impl Sync for ErrorKind
[src]
impl Unpin for ErrorKind
[src]
impl UnwindSafe for ErrorKind
[src]
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,
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>,