Struct gix_utils::btoi::ParseIntegerError
source · pub struct ParseIntegerError { /* private fields */ }Expand description
A module with utilities to turn byte slices with decimal numbers back into their binary representation.
§Credits
This module was ported from https://github.com/niklasf/rust-btoi version 0.4.3
see https://github.com/Byron/gitoxide/issues/729 for how it came to be in order
to save 2.2 seconds of per-core compile time by not compiling the num-traits crate
anymore.
Licensed with compatible licenses MIT and Apache
An error that can occur when parsing an integer.
- No digits
- Invalid digit
- Overflow
- Underflow
Trait Implementations§
source§impl Clone for ParseIntegerError
impl Clone for ParseIntegerError
source§fn clone(&self) -> ParseIntegerError
fn clone(&self) -> ParseIntegerError
Returns a copy 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 ParseIntegerError
impl Debug for ParseIntegerError
source§impl Display for ParseIntegerError
impl Display for ParseIntegerError
source§impl Error for ParseIntegerError
impl Error for ParseIntegerError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · 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
source§impl PartialEq for ParseIntegerError
impl PartialEq for ParseIntegerError
source§fn eq(&self, other: &ParseIntegerError) -> bool
fn eq(&self, other: &ParseIntegerError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ParseIntegerError
impl StructuralPartialEq for ParseIntegerError
Auto Trait Implementations§
impl Freeze for ParseIntegerError
impl RefUnwindSafe for ParseIntegerError
impl Send for ParseIntegerError
impl Sync for ParseIntegerError
impl Unpin for ParseIntegerError
impl UnwindSafe for ParseIntegerError
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