pub struct BlkidParttable<'a>(/* private fields */);Expand description
A handle for working with partition tables.
Implementations§
Source§impl<'a> BlkidParttable<'a>
impl<'a> BlkidParttable<'a>
Sourcepub fn get_id(&self) -> Result<String>
pub fn get_id(&self) -> Result<String>
Get the ID of the partition table. Given that this could be a UUID or some
other form of identifier, the return value is a String to cover all cases.
Sourcepub fn get_offset(&self) -> Result<BlkidBytes>
pub fn get_offset(&self) -> Result<BlkidBytes>
Get the offset of the partition table in bytes.
Sourcepub fn get_parent(&self) -> Option<BlkidPartition<'a>>
pub fn get_parent(&self) -> Option<BlkidPartition<'a>>
Get the parent partition in the case of nested partition tables.
Auto Trait Implementations§
impl<'a> Freeze for BlkidParttable<'a>
impl<'a> RefUnwindSafe for BlkidParttable<'a>
impl<'a> !Send for BlkidParttable<'a>
impl<'a> !Sync for BlkidParttable<'a>
impl<'a> Unpin for BlkidParttable<'a>
impl<'a> UnwindSafe for BlkidParttable<'a>
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> 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