Enum scale_value::stringify::ParseNumberError
source · pub enum ParseNumberError {
ExpectedDigit,
ParsingFailed(ParseIntError),
}
Variants§
ExpectedDigit
ParsingFailed(ParseIntError)
Implementations§
source§impl ParseNumberError
impl ParseNumberError
sourcepub fn at(self, loc: usize) -> ParseError
pub fn at(self, loc: usize) -> ParseError
Error at a specific location with no specific end
sourcepub fn at_one(self, loc: usize) -> ParseError
pub fn at_one(self, loc: usize) -> ParseError
Error at a specific location for the next character
sourcepub fn between(self, start: usize, end: usize) -> ParseError
pub fn between(self, start: usize, end: usize) -> ParseError
Error between two locations.
Trait Implementations§
source§impl Clone for ParseNumberError
impl Clone for ParseNumberError
source§fn clone(&self) -> ParseNumberError
fn clone(&self) -> ParseNumberError
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 ParseNumberError
impl Debug for ParseNumberError
source§impl Display for ParseNumberError
impl Display for ParseNumberError
source§impl From<ParseNumberError> for ParseErrorKind
impl From<ParseNumberError> for ParseErrorKind
source§fn from(original: ParseNumberError) -> ParseErrorKind
fn from(original: ParseNumberError) -> ParseErrorKind
Converts to this type from the input type.
source§impl PartialEq for ParseNumberError
impl PartialEq for ParseNumberError
source§fn eq(&self, other: &ParseNumberError) -> bool
fn eq(&self, other: &ParseNumberError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseNumberError
impl StructuralPartialEq for ParseNumberError
Auto Trait Implementations§
impl Freeze for ParseNumberError
impl RefUnwindSafe for ParseNumberError
impl Send for ParseNumberError
impl Sync for ParseNumberError
impl Unpin for ParseNumberError
impl UnwindSafe for ParseNumberError
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