#[non_exhaustive]pub struct ProtectHeader {
pub block: BlockHeader,
pub version: u8,
pub rec_sectors: u16,
pub total_blocks: u32,
pub mark: [u8; 8],
pub data_range: Range<usize>,
}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§version: u8§rec_sectors: u16§total_blocks: u32§mark: [u8; 8]§data_range: Range<usize>Trait Implementations§
Source§impl Clone for ProtectHeader
impl Clone for ProtectHeader
Source§fn clone(&self) -> ProtectHeader
fn clone(&self) -> ProtectHeader
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 ProtectHeader
impl Debug for ProtectHeader
Source§impl PartialEq for ProtectHeader
impl PartialEq for ProtectHeader
Source§fn eq(&self, other: &ProtectHeader) -> bool
fn eq(&self, other: &ProtectHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProtectHeader
impl StructuralPartialEq for ProtectHeader
Auto Trait Implementations§
impl Freeze for ProtectHeader
impl RefUnwindSafe for ProtectHeader
impl Send for ProtectHeader
impl Sync for ProtectHeader
impl Unpin for ProtectHeader
impl UnsafeUnpin for ProtectHeader
impl UnwindSafe for ProtectHeader
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