pub enum RtfError {
LexError {
position: usize,
message: String,
},
ParseError {
message: String,
},
UnexpectedToken {
expected: String,
found: Token,
},
UnmatchedGroup(String),
UnsupportedEncoding(u16),
GeneratorError(String),
Io(Error),
}Expand description
RTF parsing and generation errors.
Variants§
LexError
Lexer error encountered during tokenization.
ParseError
Parser error encountered during AST construction.
UnexpectedToken
Unexpected token encountered during parsing.
UnmatchedGroup(String)
Unmatched group brace error.
UnsupportedEncoding(u16)
Unsupported character encoding.
GeneratorError(String)
Error during RTF generation.
Io(Error)
I/O error during file operations.
Trait Implementations§
Source§impl Error for RtfError
impl Error for RtfError
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 RtfError
impl !RefUnwindSafe for RtfError
impl Send for RtfError
impl Sync for RtfError
impl Unpin for RtfError
impl UnsafeUnpin for RtfError
impl !UnwindSafe for RtfError
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