pub enum DecompositionError {
SingleWord(String),
NothingValid,
}
Expand description
Error cases for the Result
of decompound
.
Variants§
SingleWord(String)
Result was not a compound word, but a valid single word. Whether this is a hard error is subjective: in any case, decomposition failed, but the word is returned to the caller for further processing.
NothingValid
Nothing valid was found (neither a compound word nor a single, non-compound word).
Trait Implementations§
Source§impl Clone for DecompositionError
impl Clone for DecompositionError
Source§fn clone(&self) -> DecompositionError
fn clone(&self) -> DecompositionError
Returns a copy 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 DecompositionError
impl Debug for DecompositionError
Source§impl Display for DecompositionError
impl Display for DecompositionError
Source§impl Error for DecompositionError
impl Error for DecompositionError
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 Ord for DecompositionError
impl Ord for DecompositionError
Source§fn cmp(&self, other: &DecompositionError) -> Ordering
fn cmp(&self, other: &DecompositionError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DecompositionError
impl PartialEq for DecompositionError
Source§impl PartialOrd for DecompositionError
impl PartialOrd for DecompositionError
impl Eq for DecompositionError
impl StructuralPartialEq for DecompositionError
Auto Trait Implementations§
impl Freeze for DecompositionError
impl RefUnwindSafe for DecompositionError
impl Send for DecompositionError
impl Sync for DecompositionError
impl Unpin for DecompositionError
impl UnwindSafe for DecompositionError
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