pub struct PartitionReaderState { /* private fields */ }
Expand description
Partition table reader state
Implementations§
Source§impl PartitionReaderState
impl PartitionReaderState
Sourcepub fn new(offset: u32, length: usize, calc_md5: bool) -> Self
pub fn new(offset: u32, length: usize, calc_md5: bool) -> Self
Instantiate reader state
If md5
feature isn’t enabled calc_md5
argument will be ignored.
Sourcepub fn stored_md5(&self) -> Option<&Md5Data>
pub fn stored_md5(&self) -> Option<&Md5Data>
Get stored MD5 checksum
Sourcepub fn actual_md5(&self) -> Option<&Md5Data>
pub fn actual_md5(&self) -> Option<&Md5Data>
Get computed MD5 checksum
Sourcepub fn read(
&mut self,
buffer: &PartitionBuffer,
) -> Result<PartitionEntry, PartitionError>
pub fn read( &mut self, buffer: &PartitionBuffer, ) -> Result<PartitionEntry, PartitionError>
Read partition data from buffer
Trait Implementations§
Source§impl Clone for PartitionReaderState
impl Clone for PartitionReaderState
Source§fn clone(&self) -> PartitionReaderState
fn clone(&self) -> PartitionReaderState
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for PartitionReaderState
impl RefUnwindSafe for PartitionReaderState
impl Send for PartitionReaderState
impl Sync for PartitionReaderState
impl Unpin for PartitionReaderState
impl UnwindSafe for PartitionReaderState
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