pub enum PtgParseError {
UnexpectedEof {
context: &'static str,
needed: usize,
remaining: usize,
},
UnknownOpcode {
opcode: u8,
offset: usize,
},
UnknownAttrSubtype {
subtype: u8,
offset: usize,
},
UnknownExtendedSubtype {
subtype: u8,
offset: usize,
},
InvalidUtf16 {
reason: String,
},
LengthOverflow,
}Variants§
Trait Implementations§
Source§impl Clone for PtgParseError
impl Clone for PtgParseError
Source§fn clone(&self) -> PtgParseError
fn clone(&self) -> PtgParseError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PtgParseError
impl Debug for PtgParseError
Source§impl Display for PtgParseError
impl Display for PtgParseError
Source§impl Error for PtgParseError
impl Error for PtgParseError
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()
Source§impl From<PtgParseError> for FormulaError
impl From<PtgParseError> for FormulaError
Source§fn from(source: PtgParseError) -> Self
fn from(source: PtgParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PtgParseError
impl PartialEq for PtgParseError
impl Eq for PtgParseError
impl StructuralPartialEq for PtgParseError
Auto Trait Implementations§
impl Freeze for PtgParseError
impl RefUnwindSafe for PtgParseError
impl Send for PtgParseError
impl Sync for PtgParseError
impl Unpin for PtgParseError
impl UnsafeUnpin for PtgParseError
impl UnwindSafe for PtgParseError
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