pub enum HeightParseError {
HeightConversion {
height: String,
error: ParseIntError,
},
InvalidFormat,
ZeroHeight,
}
Expand description
An error while parsing a Height
.
Variants§
HeightConversion
cannot convert into a Height
type from string {height}
InvalidFormat
attempted to parse a height with invalid format (not in the form revision_number-revision_height
)
ZeroHeight
attempted to parse an invalid zero height
Trait Implementations§
source§impl Debug for HeightParseError
impl Debug for HeightParseError
source§impl Display for HeightParseError
impl Display for HeightParseError
source§impl Error for HeightParseError
Available on crate feature std
only.
impl Error for HeightParseError
Available on crate feature
std
only.source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl Freeze for HeightParseError
impl RefUnwindSafe for HeightParseError
impl Send for HeightParseError
impl Sync for HeightParseError
impl Unpin for HeightParseError
impl UnwindSafe for HeightParseError
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