pub struct ExtensionSection {
pub tag: u32,
pub flags: u32,
pub offset: u32,
pub size: u32,
}Expand description
A single extension section descriptor.
Extension sections allow for future enhancements to the cache format without breaking existing parsers.
§Fields
tag- Identifies the type of extension dataflags- Extension-specific flagsoffset- File offset where extension data beginssize- Size of extension data in bytes
§Example
let section = ExtensionSection {
tag: 1, // Extension type 1
flags: 0, // No special flags
offset: 1000, // Data starts at offset 1000
size: 256, // 256 bytes of data
};Fields§
§tag: u32§flags: u32§offset: u32§size: u32Trait Implementations§
Source§impl Clone for ExtensionSection
impl Clone for ExtensionSection
Source§fn clone(&self) -> ExtensionSection
fn clone(&self) -> ExtensionSection
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 ExtensionSection
impl Debug for ExtensionSection
Source§impl PartialEq for ExtensionSection
impl PartialEq for ExtensionSection
impl StructuralPartialEq for ExtensionSection
Auto Trait Implementations§
impl Freeze for ExtensionSection
impl RefUnwindSafe for ExtensionSection
impl Send for ExtensionSection
impl Sync for ExtensionSection
impl Unpin for ExtensionSection
impl UnwindSafe for ExtensionSection
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