Struct tap::mappedvfile::FileRanges
source · [−]Expand description
FileRanges contain a Vec<(Range
Fields
ranges: Vec<(Range<u64>, FileOffset)>id: u32Implementations
sourceimpl FileRanges
impl FileRanges
pub fn new() -> Self
sourcepub fn push(
&mut self,
offset_range: Range<u64>,
builder_offset: u64,
builder: Arc<dyn VFileBuilder>
)
pub fn push(
&mut self,
offset_range: Range<u64>,
builder_offset: u64,
builder: Arc<dyn VFileBuilder>
)
Add a new offset_range corresponding to a new block of the futur file,
and the offset builder_offset from where to read the data in the parent VFileBuilder builder.
Trait Implementations
sourceimpl Debug for FileRanges
impl Debug for FileRanges
sourceimpl Default for FileRanges
impl Default for FileRanges
sourcefn default() -> FileRanges
fn default() -> FileRanges
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for FileRanges
impl Send for FileRanges
impl Sync for FileRanges
impl Unpin for FileRanges
impl !UnwindSafe for FileRanges
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more