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(value: ParseStringError) -> Self
fn from(value: ParseStringError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ParseStringError
impl PartialEq for ParseStringError
impl Eq for ParseStringError
impl StructuralPartialEq for ParseStringError
Auto Trait Implementations§
impl Freeze for ParseStringError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more