Struct bmap_parser::BmapBuilder
source · 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