pub struct PartitionInfo {
pub label: String,
pub type_guid: Guid,
pub instance_guid: Guid,
pub start_block: u64,
pub num_blocks: u64,
pub flags: u64,
}Fields§
§label: String§type_guid: Guid§instance_guid: Guid§start_block: u64§num_blocks: u64§flags: u64Implementations§
Source§impl PartitionInfo
impl PartitionInfo
pub fn from_entry(entry: &PartitionTableEntry) -> Result<Self, Error>
pub fn as_entry(&self) -> PartitionTableEntry
pub fn nil() -> Self
pub fn is_nil(&self) -> bool
Trait Implementations§
Source§impl Clone for PartitionInfo
impl Clone for PartitionInfo
Source§fn clone(&self) -> PartitionInfo
fn clone(&self) -> PartitionInfo
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 PartitionInfo
impl Debug for PartitionInfo
Source§impl From<&PartitionInfo> for PartitionInfo
impl From<&PartitionInfo> for PartitionInfo
Source§fn from(info: &PartitionInfo) -> Self
fn from(info: &PartitionInfo) -> Self
Converts to this type from the input type.
Source§impl From<PartitionInfo> for PartitionInfo
impl From<PartitionInfo> for PartitionInfo
Source§fn from(info: PartitionInfo) -> Self
fn from(info: PartitionInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PartitionInfo
impl RefUnwindSafe for PartitionInfo
impl Send for PartitionInfo
impl Sync for PartitionInfo
impl Unpin for PartitionInfo
impl UnsafeUnpin for PartitionInfo
impl UnwindSafe for PartitionInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more