pub enum SectionHeaderParseError {
MissingNameIdxError,
MissingSectionKindError(usize),
InvalidSectionKindError(usize, u8),
MissingSizeError(usize),
}
Expand description
An error encountered when parsing a section header from the section header table
Variants§
MissingNameIdxError
Reached EOF before reading name index
MissingSectionKindError(usize)
Reached EOF before reading section kind
InvalidSectionKindError(usize, u8)
Encountered invalid section kind
MissingSizeError(usize)
Reached EOF before reading section size
Trait Implementations§
Source§impl Clone for SectionHeaderParseError
impl Clone for SectionHeaderParseError
Source§fn clone(&self) -> SectionHeaderParseError
fn clone(&self) -> SectionHeaderParseError
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 SectionHeaderParseError
impl Debug for SectionHeaderParseError
Source§impl Display for SectionHeaderParseError
impl Display for SectionHeaderParseError
Source§impl Error for SectionHeaderParseError
impl Error for SectionHeaderParseError
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 Copy for SectionHeaderParseError
Auto Trait Implementations§
impl Freeze for SectionHeaderParseError
impl RefUnwindSafe for SectionHeaderParseError
impl Send for SectionHeaderParseError
impl Sync for SectionHeaderParseError
impl Unpin for SectionHeaderParseError
impl UnwindSafe for SectionHeaderParseError
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