Struct libblkid_rs::BlkidParttable
source · pub struct BlkidParttable(/* private fields */);
Expand description
A handle for working with partition tables.
Implementations§
source§impl BlkidParttable
impl BlkidParttable
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>
pub fn get_parent(&self) -> Option<BlkidPartition>
Get the parent partition in the case of nested partition tables.
Auto Trait Implementations§
impl Freeze for BlkidParttable
impl RefUnwindSafe for BlkidParttable
impl !Send for BlkidParttable
impl !Sync for BlkidParttable
impl Unpin for BlkidParttable
impl UnwindSafe for BlkidParttable
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