Enum kodept_parse::tokenizer::TokenizeError
source · pub enum TokenizeError {
Parse(ErrorTree<String>),
IO(Error),
Utf8(Utf8Error),
}
Variants§
Trait Implementations§
source§impl Debug for TokenizeError
impl Debug for TokenizeError
source§impl Display for TokenizeError
impl Display for TokenizeError
source§impl Error for TokenizeError
impl Error for TokenizeError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for TokenizeError
impl From<Error> for TokenizeError
Auto Trait Implementations§
impl Freeze for TokenizeError
impl !RefUnwindSafe for TokenizeError
impl Send for TokenizeError
impl Sync for TokenizeError
impl Unpin for TokenizeError
impl !UnwindSafe for TokenizeError
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, U> ConvertibleToMut<U> for T
impl<T, U> ConvertibleToMut<U> for T
fn try_as_mut(&mut self) -> Option<&mut U>
source§impl<T, U> ConvertibleToRef<U> for T
impl<T, U> ConvertibleToRef<U> for T
fn try_as_ref(&self) -> Option<&U>
source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
source§impl<T> Indentable for Twhere
T: Display,
impl<T> Indentable for Twhere
T: Display,
source§fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more