pub struct ParseError { /* private fields */ }
Expand description
An error which can be returned when parsing a precision.
This error is used as the error type for the
from_str_radix()
method on the Precision
type.
§Examples
use uniq_ch::Precision;
if let Err(e) = Precision::from_str_radix("a12", 10) {
println!("Failed conversion to precision: {e}");
}
Implementations§
Source§impl ParseError
impl ParseError
Sourcepub fn kind(&self) -> &ParseErrorKind
pub fn kind(&self) -> &ParseErrorKind
Outputs the detailed cause of parsing an precision failing.
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
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 ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl Eq 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