pub struct IndexRoot {
pub signature: [u8; 2],
pub num_elements: u16,
pub elements: Vec<IndexRootElement>,
}Expand description
Index root list (ri).
Fields§
§signature: [u8; 2]Signature: “ri”
num_elements: u16Number of elements.
elements: Vec<IndexRootElement>List elements.
Implementations§
Source§impl IndexRoot
impl IndexRoot
Sourcepub const HEADER_SIZE: usize = 4
pub const HEADER_SIZE: usize = 4
Fixed header size.
Sourcepub fn total_size(&self) -> usize
pub fn total_size(&self) -> usize
Get the total size.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexRoot
impl RefUnwindSafe for IndexRoot
impl Send for IndexRoot
impl Sync for IndexRoot
impl Unpin for IndexRoot
impl UnsafeUnpin for IndexRoot
impl UnwindSafe for IndexRoot
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