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 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