pub enum ParseError {
Empty,
NoUnit {
at: usize,
},
EmptyQuantity {
unit: Unit,
at: usize,
},
TooBig {
unit: Unit,
at: usize,
},
TooPrecise {
unit: Unit,
at: usize,
},
BadDenominator {
unit: Unit,
at: usize,
},
BadNumerator {
unit: Unit,
at: usize,
},
InvalidCompound {
inferior: Unit,
found: Unit,
at: usize,
},
}Variants§
Empty
Empty or entirely whitespace.
NoUnit
Missing or invalid unit.
EmptyQuantity
Missing quantity portion of the dimension.
Fields
TooBig
Quantity is too large for unit.
Fields
TooPrecise
Quantity is too precise for unit.
Fields
BadDenominator
Denominator in fraction is not accepted for unit.
Fields
BadNumerator
Numerator is out of range for unit or denominator.
Fields
InvalidCompound
Found compound unit, but the superior unit was not valid for the inferior.
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a duplicate 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 ParseError
impl Debug for ParseError
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl Copy for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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