Enum linkspace_pkt::ruint::BaseConvertError
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§
§impl Clone for BaseConvertError
impl Clone for BaseConvertError
§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 more§impl Debug for BaseConvertError
impl Debug for BaseConvertError
§impl Display for BaseConvertError
impl Display for BaseConvertError
§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)>
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()
§impl From<BaseConvertError> for ParseError
impl From<BaseConvertError> for ParseError
§fn from(source: BaseConvertError) -> ParseError
fn from(source: BaseConvertError) -> ParseError
Converts to this type from the input type.
§impl PartialEq<BaseConvertError> for BaseConvertError
impl PartialEq<BaseConvertError> for BaseConvertError
§fn eq(&self, other: &BaseConvertError) -> bool
fn eq(&self, other: &BaseConvertError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.