#[non_exhaustive]pub struct MainHeader {
pub block: BlockHeader,
pub archive_flags: u64,
pub volume_number: Option<u64>,
pub extras: Vec<MainExtraRecord>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.block: BlockHeader§archive_flags: u64§volume_number: Option<u64>§extras: Vec<MainExtraRecord>Implementations§
Source§impl MainHeader
impl MainHeader
pub fn is_volume(&self) -> bool
pub fn is_solid(&self) -> bool
pub fn has_recovery_record(&self) -> bool
pub fn is_locked(&self) -> bool
pub fn locator(&self) -> Option<&LocatorRecord>
pub fn archive_metadata(&self) -> Option<&ArchiveMetadataRecord>
Trait Implementations§
Source§impl Clone for MainHeader
impl Clone for MainHeader
Source§fn clone(&self) -> MainHeader
fn clone(&self) -> MainHeader
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 moreSource§impl Debug for MainHeader
impl Debug for MainHeader
Source§impl PartialEq for MainHeader
impl PartialEq for MainHeader
Source§fn eq(&self, other: &MainHeader) -> bool
fn eq(&self, other: &MainHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MainHeader
impl StructuralPartialEq for MainHeader
Auto Trait Implementations§
impl Freeze for MainHeader
impl RefUnwindSafe for MainHeader
impl Send for MainHeader
impl Sync for MainHeader
impl Unpin for MainHeader
impl UnsafeUnpin for MainHeader
impl UnwindSafe for MainHeader
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