pub enum EditableError {
CannotDoAction(String),
CannotUndoAction(String),
Custom(Box<dyn Error>),
}Expand description
An error that can occur during editing operations.
Variants§
CannotDoAction(String)
An error indicating that an action cannot be performed.
CannotUndoAction(String)
An error indicating that an action cannot be undone.
Custom(Box<dyn Error>)
A custom error.
Trait Implementations§
Source§impl Debug for EditableError
impl Debug for EditableError
Source§impl Display for EditableError
impl Display for EditableError
Source§impl Error for EditableError
impl Error for EditableError
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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for EditableError
impl !RefUnwindSafe for EditableError
impl !Send for EditableError
impl !Sync for EditableError
impl Unpin for EditableError
impl !UnwindSafe for EditableError
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