pub enum SectionError {
LengthError,
BaseError(u32),
EntryOffsetOutOfRange(u32, u32),
}Expand description
Errors in section
Variants§
LengthError
Section length error.
Will appear if recorded section length is 0.
BaseError(u32)
Section base error.
Will appear if specified section base is lower than metadata length (128+32).
Contains the incorrect base.
EntryOffsetOutOfRange(u32, u32)
Entry offset out of range.
Will appear if entry offset is out of range of the section.
Contains the incorrect entry offset (0) and the section length (1).
Trait Implementations§
Source§impl Clone for SectionError
impl Clone for SectionError
Source§fn clone(&self) -> SectionError
fn clone(&self) -> SectionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SectionError
Source§impl Debug for SectionError
impl Debug for SectionError
impl Eq for SectionError
Source§impl PartialEq for SectionError
impl PartialEq for SectionError
impl StructuralPartialEq for SectionError
Auto Trait Implementations§
impl Freeze for SectionError
impl RefUnwindSafe for SectionError
impl Send for SectionError
impl Sync for SectionError
impl Unpin for SectionError
impl UnsafeUnpin for SectionError
impl UnwindSafe for SectionError
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