Enum humanize_rs::ParseError [−][src]
pub enum ParseError { EmptyInput, MissingValue, InvalidValue, MissingUnit, InvalidUnit, DuplicateUnit, Overflow, }
Error parsing formatted strings
Variants
EmptyInput
Parsing an empty string
MissingValue
The numeric value is missing
InvalidValue
Malformed numeric value
MissingUnit
The unit is missing
InvalidUnit
Unknown unit
DuplicateUnit
The unit shows multiple times in the string
Overflow
The numeric value is too large
Trait Implementations
impl Debug for ParseError
[src]
impl Debug for ParseError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for ParseError
[src]
impl Copy for ParseError
impl Clone for ParseError
[src]
impl Clone for ParseError
fn clone(&self) -> ParseError
[src]
fn clone(&self) -> ParseError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for ParseError
[src]
impl Eq for ParseError
impl PartialEq for ParseError
[src]
impl PartialEq for ParseError
fn eq(&self, other: &ParseError) -> bool
[src]
fn eq(&self, other: &ParseError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Display for ParseError
[src]
impl Display for ParseError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for ParseError
[src]
impl Error for ParseError
Auto Trait Implementations
impl Send for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Sync for ParseError