pub enum Error {
Syntax {
message: String,
position: usize,
},
UnassignedCode {
byte: u8,
position: usize,
},
UnexpectedEnd {
what: String,
position: usize,
},
Key(String),
GlyphInData,
Other(String),
}Expand description
Errors raised while scanning, validating or decoding C0DATA.
Variants§
Syntax
Malformed input: what went wrong and the byte offset.
UnassignedCode
A control byte that is not one of the assigned codes, outside text.
UnexpectedEnd
The input ended inside a construct.
Key(String)
No group or key by that name.
GlyphInData
A value holds a Control Picture character and cannot be shown in pretty form without ambiguity.
Other(String)
A misuse of the API: a unit that is not a level, a level that is not a list, a name that is not legal, and the like.
Implementations§
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
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()
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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