Trait mmap_vec::SegmentBuilder
source · pub trait SegmentBuilder: Default {
// Required method
fn create_new_segment<T>(&self, capacity: usize) -> Result<Segment<T>>;
}Expand description
Trait that contains everything we need to deals with unique segment creation.
Required Methods§
sourcefn create_new_segment<T>(&self, capacity: usize) -> Result<Segment<T>>
fn create_new_segment<T>(&self, capacity: usize) -> Result<Segment<T>>
Create / allocate new memory mapped segment.