pub enum LevelSpecError {
NotANumber {
part: String,
range: String,
source: ParseFloatError,
},
BadRange {
range: String,
},
}Expand description
Text that cannot be parsed as a LevelSpec.
Variants§
NotANumber
A part of range range that is not a number.
Fields
§
source: ParseFloatErrorReason the part cannot be parsed as an f64.
BadRange
A range with other than two or three parts.
Trait Implementations§
Source§impl Clone for LevelSpecError
impl Clone for LevelSpecError
Source§impl Debug for LevelSpecError
impl Debug for LevelSpecError
Source§impl Display for LevelSpecError
impl Display for LevelSpecError
impl Eq for LevelSpecError
Source§impl Error for LevelSpecError
impl Error for LevelSpecError
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 LevelSpecError
impl PartialEq for LevelSpecError
impl StructuralPartialEq for LevelSpecError
Auto Trait Implementations§
impl Freeze for LevelSpecError
impl RefUnwindSafe for LevelSpecError
impl Send for LevelSpecError
impl Sync for LevelSpecError
impl Unpin for LevelSpecError
impl UnsafeUnpin for LevelSpecError
impl UnwindSafe for LevelSpecError
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