pub struct Error { /* private fields */ }
Expand description
Error type returned by methods of this library
Implementations§
Source§impl Error
impl Error
Sourcepub fn process<S: Into<String>>(msg: S) -> Error
pub fn process<S: Into<String>>(msg: S) -> Error
Create a new process error
(for errors launching Ispell)
Sourcepub fn utf8<S: Into<String>>(msg: S) -> Error
pub fn utf8<S: Into<String>>(msg: S) -> Error
Create a new UTF8 error
(for errors converting to UTF8)
Sourcepub fn protocol<S: Into<String>>(msg: S) -> Error
pub fn protocol<S: Into<String>>(msg: S) -> Error
Creates a new protocol error
(when we didn’t understand ispell output)
Sourcepub fn invalid_word<S: Into<String>>(msg: S) -> Error
pub fn invalid_word<S: Into<String>>(msg: S) -> Error
Creates a new invalid word error
(when the user uses illegal characters in a word)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
Converts to this type from the input type.
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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