pub struct SectionEntry {
pub kind: SectionKind,
pub flags: u16,
pub crc32c: u32,
pub offset: u64,
pub length: u64,
pub uncompressed_length: u64,
}Expand description
32-byte entry in the Section Directory.
Fields§
§kind: SectionKind§flags: u16§crc32c: u32§offset: u64§length: u64§uncompressed_length: u64Implementations§
Source§impl SectionEntry
impl SectionEntry
pub fn codec(&self) -> Result<Codec, FormatError>
pub fn encode(&self, out: &mut Vec<u8>)
pub fn decode(c: &mut Cursor<'_>) -> Result<SectionEntry, FormatError>
Trait Implementations§
Source§impl Clone for SectionEntry
impl Clone for SectionEntry
Source§fn clone(&self) -> SectionEntry
fn clone(&self) -> SectionEntry
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 SectionEntry
Source§impl Debug for SectionEntry
impl Debug for SectionEntry
impl Eq for SectionEntry
Source§impl PartialEq for SectionEntry
impl PartialEq for SectionEntry
impl StructuralPartialEq for SectionEntry
Auto Trait Implementations§
impl Forget for SectionEntry
impl Freeze for SectionEntry
impl Move for SectionEntry
impl RefUnwindSafe for SectionEntry
impl Send for SectionEntry
impl Sync for SectionEntry
impl Unpin for SectionEntry
impl UnsafeUnpin for SectionEntry
impl UnwindSafe for SectionEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.