pub enum BaseConvertError {
Overflow,
InvalidBase(u64),
InvalidDigit(u64, u64),
}
Expand description
Error for from_base_le
and
from_base_be
.
Variants§
Overflow
The value is too large to fit the target type.
InvalidBase(u64)
The requested number base .0
is less than two.
InvalidDigit(u64, u64)
The provided digit .0
is out of range for requested base .1
.
Trait Implementations§
Source§impl Clone for BaseConvertError
impl Clone for BaseConvertError
Source§fn clone(&self) -> BaseConvertError
fn clone(&self) -> BaseConvertError
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 BaseConvertError
impl Debug for BaseConvertError
Source§impl Display for BaseConvertError
impl Display for BaseConvertError
Source§impl Error for BaseConvertError
impl Error for BaseConvertError
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 From<BaseConvertError> for ParseError
impl From<BaseConvertError> for ParseError
Source§fn from(value: BaseConvertError) -> Self
fn from(value: BaseConvertError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BaseConvertError
impl PartialEq for BaseConvertError
impl Copy for BaseConvertError
impl Eq for BaseConvertError
impl StructuralPartialEq for BaseConvertError
Auto Trait Implementations§
impl Freeze for BaseConvertError
impl RefUnwindSafe for BaseConvertError
impl Send for BaseConvertError
impl Sync for BaseConvertError
impl Unpin for BaseConvertError
impl UnwindSafe for BaseConvertError
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