pub struct PartitionEditor {
entries: [u8; 16384],
modified: bool,
}Fields§
§entries: [u8; 16384]§modified: boolImplementations§
Source§impl PartitionEditor
impl PartitionEditor
pub fn new() -> Self
pub fn load_from_buffer(&mut self, buffer: &[u8])
pub fn get_buffer(&self) -> &[u8]
pub fn find_free_slot(&self) -> Option<usize>
pub fn add_partition( &mut self, slot: usize, type_guid: [u8; 16], start_lba: u64, end_lba: u64, name: &str, ) -> Result<(), ()>
pub fn delete_partition(&mut self, slot: usize) -> Result<(), ()>
pub fn is_modified(&self) -> bool
Auto Trait Implementations§
impl Freeze for PartitionEditor
impl RefUnwindSafe for PartitionEditor
impl Send for PartitionEditor
impl Sync for PartitionEditor
impl Unpin for PartitionEditor
impl UnwindSafe for PartitionEditor
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