Struct mbr_nostd::PartitionTableEntry
source · pub struct PartitionTableEntry {
pub partition_type: PartitionType,
pub logical_block_address: u32,
pub sector_count: u32,
}
Expand description
An entry in a partition table.
Fields
partition_type: PartitionType
The type of partition in this entry.
logical_block_address: u32
The index of the first block of this entry.
sector_count: u32
The total number of blocks in this entry.
Implementations
sourceimpl PartitionTableEntry
impl PartitionTableEntry
pub fn new(
partition_type: PartitionType,
logical_block_address: u32,
sector_count: u32
) -> PartitionTableEntry
pub fn empty() -> PartitionTableEntry
Trait Implementations
sourceimpl Clone for PartitionTableEntry
impl Clone for PartitionTableEntry
sourcefn clone(&self) -> PartitionTableEntry
fn clone(&self) -> PartitionTableEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PartitionTableEntry
impl Debug for PartitionTableEntry
sourceimpl Hash for PartitionTableEntry
impl Hash for PartitionTableEntry
sourceimpl PartialEq<PartitionTableEntry> for PartitionTableEntry
impl PartialEq<PartitionTableEntry> for PartitionTableEntry
sourcefn eq(&self, other: &PartitionTableEntry) -> bool
fn eq(&self, other: &PartitionTableEntry) -> bool
impl Copy for PartitionTableEntry
impl Eq for PartitionTableEntry
impl StructuralEq for PartitionTableEntry
impl StructuralPartialEq for PartitionTableEntry
Auto Trait Implementations
impl RefUnwindSafe for PartitionTableEntry
impl Send for PartitionTableEntry
impl Sync for PartitionTableEntry
impl Unpin for PartitionTableEntry
impl UnwindSafe for PartitionTableEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more