pub enum TextParseError {
Io(Error),
Lexer(Line),
Parser(Line),
}Variants§
Implementations§
Source§impl TextParse
impl TextParse
pub fn from_lexer(message: String, line_number: NonZeroU64) -> TextParse
pub fn from_parser(message: String, line_number: NonZeroU64) -> TextParse
pub fn eof() -> TextParse
Trait Implementations§
Source§impl Error for TextParse
impl Error for TextParse
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for TextParse
impl !RefUnwindSafe for TextParse
impl Send for TextParse
impl Sync for TextParse
impl Unpin for TextParse
impl UnsafeUnpin for TextParse
impl !UnwindSafe for TextParse
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