pub enum AbbrevError {
Conflict {
short_name: String,
existing: String,
new: String,
},
InvalidName(String),
}Expand description
Error when creating abbreviations.
Variants§
Conflict
Two qualified names map to the same short name.
InvalidName(String)
The qualified name is empty or invalid.
Trait Implementations§
Source§impl Clone for AbbrevError
impl Clone for AbbrevError
Source§fn clone(&self) -> AbbrevError
fn clone(&self) -> AbbrevError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AbbrevError
impl Debug for AbbrevError
Source§impl Display for AbbrevError
impl Display for AbbrevError
Source§impl Error for AbbrevError
impl Error for AbbrevError
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()
Source§impl PartialEq for AbbrevError
impl PartialEq for AbbrevError
impl Eq for AbbrevError
impl StructuralPartialEq for AbbrevError
Auto Trait Implementations§
impl Freeze for AbbrevError
impl RefUnwindSafe for AbbrevError
impl Send for AbbrevError
impl Sync for AbbrevError
impl Unpin for AbbrevError
impl UnsafeUnpin for AbbrevError
impl UnwindSafe for AbbrevError
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