pub enum ParseComplexError {
InvalidStartingCharacterInIdent,
InvalidFieldName,
MissingFieldSeparator(char),
ExpectedCloserToMatch(char, usize),
}
Variants§
InvalidStartingCharacterInIdent
InvalidFieldName
MissingFieldSeparator(char)
ExpectedCloserToMatch(char, usize)
Implementations§
source§impl ParseComplexError
impl ParseComplexError
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 ParseComplexError
impl Clone for ParseComplexError
source§fn clone(&self) -> ParseComplexError
fn clone(&self) -> ParseComplexError
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 ParseComplexError
impl Debug for ParseComplexError
source§impl Display for ParseComplexError
impl Display for ParseComplexError
source§impl From<ParseComplexError> for ParseErrorKind
impl From<ParseComplexError> for ParseErrorKind
source§fn from(value: ParseComplexError) -> Self
fn from(value: ParseComplexError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ParseComplexError
impl PartialEq for ParseComplexError
impl Eq for ParseComplexError
impl StructuralPartialEq for ParseComplexError
Auto Trait Implementations§
impl Freeze for ParseComplexError
impl RefUnwindSafe for ParseComplexError
impl Send for ParseComplexError
impl Sync for ParseComplexError
impl Unpin for ParseComplexError
impl UnwindSafe for ParseComplexError
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