pub enum SudachiNomError<I> {
Utf16String,
Nom(I, ErrorKind),
OutOfBounds(String, usize, usize),
}
Expand description
Custum nom error
Variants§
Trait Implementations§
source§impl<I: Debug> Debug for SudachiNomError<I>
impl<I: Debug> Debug for SudachiNomError<I>
source§impl<I> ParseError<I> for SudachiNomError<I>
impl<I> ParseError<I> for SudachiNomError<I>
source§fn from_error_kind(input: I, kind: ErrorKind) -> Self
fn from_error_kind(input: I, kind: ErrorKind) -> Self
Creates an error from the input position and an [ErrorKind]
source§fn append(_: I, _: ErrorKind, other: Self) -> Self
fn append(_: I, _: ErrorKind, other: Self) -> Self
Combines an existing error with a new one created from the input
position and an [ErrorKind]. This is useful when backtracking
through a parse tree, accumulating error context on the way
source§impl<I: PartialEq> PartialEq for SudachiNomError<I>
impl<I: PartialEq> PartialEq for SudachiNomError<I>
impl<I> StructuralPartialEq for SudachiNomError<I>
Auto Trait Implementations§
impl<I> Freeze for SudachiNomError<I>where
I: Freeze,
impl<I> RefUnwindSafe for SudachiNomError<I>where
I: RefUnwindSafe,
impl<I> Send for SudachiNomError<I>where
I: Send,
impl<I> Sync for SudachiNomError<I>where
I: Sync,
impl<I> Unpin for SudachiNomError<I>where
I: Unpin,
impl<I> UnwindSafe for SudachiNomError<I>where
I: UnwindSafe,
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> 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