pub enum CheckBaseError {
BaseLenTooShort(String),
DuplicateCharInBase {
base: String,
c: char,
},
}Expand description
Errors that can be returned by check_base and any function that takes a base as argument.
Variants§
BaseLenTooShort(String)
Error occurring when a base length is inferior at 2.
DuplicateCharInBase
Error occurring when a character appears more than once in a base.
Trait Implementations§
Source§impl Debug for CheckBaseError
impl Debug for CheckBaseError
Source§impl Display for CheckBaseError
impl Display for CheckBaseError
Source§impl Error for CheckBaseError
impl Error for CheckBaseError
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 CheckBaseError
impl RefUnwindSafe for CheckBaseError
impl Send for CheckBaseError
impl Sync for CheckBaseError
impl Unpin for CheckBaseError
impl UnsafeUnpin for CheckBaseError
impl UnwindSafe for CheckBaseError
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