Enum scale_value::stringify::ParseStringError
source · pub enum ParseStringError {
ExpectedClosingQuoteToMatch(usize),
ExpectedValidEscapeCode,
}
Variants§
Implementations§
source§impl ParseStringError
impl ParseStringError
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 ParseStringError
impl Clone for ParseStringError
source§fn clone(&self) -> ParseStringError
fn clone(&self) -> ParseStringError
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 ParseStringError
impl Debug for ParseStringError
source§impl Display for ParseStringError
impl Display for ParseStringError
source§impl From<ParseStringError> for ParseErrorKind
impl From<ParseStringError> for ParseErrorKind
source§fn from(original: ParseStringError) -> ParseErrorKind
fn from(original: ParseStringError) -> ParseErrorKind
Converts to this type from the input type.
source§impl PartialEq for ParseStringError
impl PartialEq for ParseStringError
source§fn eq(&self, other: &ParseStringError) -> bool
fn eq(&self, other: &ParseStringError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseStringError
impl StructuralPartialEq for ParseStringError
Auto Trait Implementations§
impl RefUnwindSafe for ParseStringError
impl Send for ParseStringError
impl Sync for ParseStringError
impl Unpin for ParseStringError
impl UnwindSafe for ParseStringError
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