pub enum CyclesParseError {
Empty,
InvalidNumber {
value: String,
},
InvalidSuffix {
suffix: String,
},
Overflow {
value: String,
},
SubcyclePrecision {
value: String,
},
}Expand description
CyclesParseError
Typed failure while parsing an exact human-readable cycle amount.
Owned by the cycle value boundary and returned by Cycles::from_str.
Variants§
Trait Implementations§
Source§impl Clone for CyclesParseError
impl Clone for CyclesParseError
Source§fn clone(&self) -> CyclesParseError
fn clone(&self) -> CyclesParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CyclesParseError
impl Debug for CyclesParseError
Source§impl Display for CyclesParseError
impl Display for CyclesParseError
impl Eq for CyclesParseError
Source§impl Error for CyclesParseError
impl Error for CyclesParseError
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 PartialEq for CyclesParseError
impl PartialEq for CyclesParseError
impl StructuralPartialEq for CyclesParseError
Auto Trait Implementations§
impl Freeze for CyclesParseError
impl RefUnwindSafe for CyclesParseError
impl Send for CyclesParseError
impl Sync for CyclesParseError
impl Unpin for CyclesParseError
impl UnsafeUnpin for CyclesParseError
impl UnwindSafe for CyclesParseError
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