pub struct Header { /* private fields */ }Expand description
Header of a daicon table.
When creating a new table for writing, using the Default implementation will automatically
fill the signature.
Implementations§
Source§impl Header
impl Header
Sourcepub fn set_signature(&mut self, value: u32)
pub fn set_signature(&mut self, value: u32)
Set signature.
Sourcepub fn capacity(&self) -> u16
pub fn capacity(&self) -> u16
Get the amount of indices of allocated space available in this table.
Sourcepub fn set_capacity(&mut self, value: u16)
pub fn set_capacity(&mut self, value: u16)
Set capacity.
Sourcepub fn set_offset(&mut self, value: u64)
pub fn set_offset(&mut self, value: u64)
Set offset.
Sourcepub fn next(&self) -> Option<NonZeroU64>
pub fn next(&self) -> Option<NonZeroU64>
Get the offset of the next table.
Sourcepub fn set_next(&mut self, value: Option<NonZeroU64>)
pub fn set_next(&mut self, value: Option<NonZeroU64>)
Set next.
Trait Implementations§
impl Copy for Header
impl Pod for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.