#[repr(C)]pub struct VolumeDescriptorHeader {
pub descriptor_type: u8,
pub standard_identifier: IsoStrA<5>,
pub version: u8,
}Available on crate feature
sync only.Expand description
Represents VolumeDescriptorHeader.
Fields§
§descriptor_type: u8The descriptor_type field.
standard_identifier: IsoStrA<5>The standard_identifier field.
version: u8The version field.
Implementations§
Source§impl VolumeDescriptorHeader
impl VolumeDescriptorHeader
Sourcepub fn new(ty: VolumeDescriptorType) -> Self
pub fn new(ty: VolumeDescriptorType) -> Self
Performs the new operation.
Sourcepub fn from_bytes(bytes: &[u8]) -> &Self
pub fn from_bytes(bytes: &[u8]) -> &Self
Performs the from_bytes operation.
Trait Implementations§
Source§impl Clone for VolumeDescriptorHeader
impl Clone for VolumeDescriptorHeader
Source§fn clone(&self) -> VolumeDescriptorHeader
fn clone(&self) -> VolumeDescriptorHeader
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 moreimpl Copy for VolumeDescriptorHeader
Source§impl Debug for VolumeDescriptorHeader
impl Debug for VolumeDescriptorHeader
impl Pod for VolumeDescriptorHeader
Auto Trait Implementations§
impl Freeze for VolumeDescriptorHeader
impl RefUnwindSafe for VolumeDescriptorHeader
impl Send for VolumeDescriptorHeader
impl Sync for VolumeDescriptorHeader
impl Unpin for VolumeDescriptorHeader
impl UnsafeUnpin for VolumeDescriptorHeader
impl UnwindSafe for VolumeDescriptorHeader
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.