Enum human_size::ParsingError [−][src]
pub enum ParsingError { EmptyInput, MissingValue, InvalidValue, MissingMultiple, InvalidMultiple, }
The error returned when trying to parse a SpecificSize
, using the
FromStr
trait.
Variants
EmptyInput
The provided string is empty, i.e. "".
MissingValue
The provided string is missing a value, e.g. "B".
InvalidValue
The value is invalid, see SpecificSize::new
.
MissingMultiple
The value is missing the multiple of bytes, e.g. "100".
InvalidMultiple
The multiple in the string is invalid, e.g. "100 invalid".
Trait Implementations
impl Copy for ParsingError
[src]
impl Copy for ParsingError
impl Clone for ParsingError
[src]
impl Clone for ParsingError
fn clone(&self) -> ParsingError
[src]
fn clone(&self) -> ParsingError
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 Debug for ParsingError
[src]
impl Debug for ParsingError
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 Eq for ParsingError
[src]
impl Eq for ParsingError
impl PartialEq for ParsingError
[src]
impl PartialEq for ParsingError
fn eq(&self, other: &ParsingError) -> bool
[src]
fn eq(&self, other: &ParsingError) -> 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 ParsingError
[src]
impl Display for ParsingError
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 ParsingError
[src]
impl Error for ParsingError
Auto Trait Implementations
impl Send for ParsingError
impl Send for ParsingError
impl Sync for ParsingError
impl Sync for ParsingError