pub struct BmapBuilder { /* private fields */ }
Implementations§
Source§impl BmapBuilder
impl BmapBuilder
pub fn image_size(&mut self, size: u64) -> &mut Self
pub fn block_size(&mut self, block_size: u64) -> &mut Self
pub fn blocks(&mut self, blocks: u64) -> &mut Self
pub fn mapped_blocks(&mut self, blocks: u64) -> &mut Self
pub fn checksum_type(&mut self, checksum_type: HashType) -> &mut Self
pub fn add_block_range( &mut self, start: u64, end: u64, checksum: HashValue, ) -> &mut Self
pub fn add_byte_range( &mut self, offset: u64, length: u64, checksum: HashValue, ) -> &mut Self
pub fn build(self) -> Result<Bmap, BmapBuilderError>
Trait Implementations§
Source§impl Clone for BmapBuilder
impl Clone for BmapBuilder
Source§fn clone(&self) -> BmapBuilder
fn clone(&self) -> BmapBuilder
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 moreSource§impl Debug for BmapBuilder
impl Debug for BmapBuilder
Source§impl Default for BmapBuilder
impl Default for BmapBuilder
Source§fn default() -> BmapBuilder
fn default() -> BmapBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BmapBuilder
impl RefUnwindSafe for BmapBuilder
impl Send for BmapBuilder
impl Sync for BmapBuilder
impl Unpin for BmapBuilder
impl UnwindSafe for BmapBuilder
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