pub struct GptPartitionEntrySize(/* private fields */);Expand description
Size in bytes of entries in the partition entry array.
A valid partition entry size must be a value of 128×2ⁿ, where n is an integer ≥0.
Implementations§
Source§impl GptPartitionEntrySize
impl GptPartitionEntrySize
Sourcepub const fn new(val: u32) -> Result<Self, GptPartitionEntrySizeError>
pub const fn new(val: u32) -> Result<Self, GptPartitionEntrySizeError>
Create a new GptPartitionEntrySize. Returns
GptPartitionEntrySizeError if the input is less than 128 or
not a power of two.
Trait Implementations§
Source§impl Clone for GptPartitionEntrySize
impl Clone for GptPartitionEntrySize
Source§fn clone(&self) -> GptPartitionEntrySize
fn clone(&self) -> GptPartitionEntrySize
Returns a duplicate of the value. Read more
1.0.0 · 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 GptPartitionEntrySize
impl Debug for GptPartitionEntrySize
Source§impl Default for GptPartitionEntrySize
impl Default for GptPartitionEntrySize
Source§impl Display for GptPartitionEntrySize
impl Display for GptPartitionEntrySize
Source§impl Hash for GptPartitionEntrySize
impl Hash for GptPartitionEntrySize
Source§impl Ord for GptPartitionEntrySize
impl Ord for GptPartitionEntrySize
Source§fn cmp(&self, other: &GptPartitionEntrySize) -> Ordering
fn cmp(&self, other: &GptPartitionEntrySize) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GptPartitionEntrySize
impl PartialEq for GptPartitionEntrySize
Source§impl PartialOrd for GptPartitionEntrySize
impl PartialOrd for GptPartitionEntrySize
impl Copy for GptPartitionEntrySize
impl Eq for GptPartitionEntrySize
impl StructuralPartialEq for GptPartitionEntrySize
Auto Trait Implementations§
impl Freeze for GptPartitionEntrySize
impl RefUnwindSafe for GptPartitionEntrySize
impl Send for GptPartitionEntrySize
impl Sync for GptPartitionEntrySize
impl Unpin for GptPartitionEntrySize
impl UnwindSafe for GptPartitionEntrySize
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