Struct hff_std::DataBuilder
source · pub struct DataBuilder { /* private fields */ }
Expand description
Helper to track and build chunks.
Implementations§
source§impl DataBuilder
impl DataBuilder
sourcepub fn push(&mut self, data_source: Box<dyn DataSource>, size: u64)
pub fn push(&mut self, data_source: Box<dyn DataSource>, size: u64)
Push a chunk onto the builder.
sourcepub fn size_bytes(&self) -> u64
pub fn size_bytes(&self) -> u64
Get the size in bytes of the contained data.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DataBuilder
impl !Send for DataBuilder
impl !Sync for DataBuilder
impl Unpin for DataBuilder
impl !UnwindSafe for DataBuilder
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