pub fn new(ident: Ident, typical_chunk_size: usize, base_size: usize, storage: Rc<dyn ChunkStorage>) -> Self {
        let mut multi_arena = MultiArena {
            typical_chunk_size,
            base_size,
            used_bin_sizes: Vector::<usize>::new(ident.sub("bin_sizes"), 1024, Rc::clone(&storage)),
            ident,
            bins: Vec::new(),
            storage
        };

        let n_bins = multi_arena.used_bin_sizes.len();

        for i in 0..n_bins {
            let size = *multi_arena.used_bin_sizes.at(i).unwrap();
            multi_arena.get_or_insert_bin_for_size(size);
        }

        multi_arena
    }
/// Create a new `MultiArena` collection using `Arena` bins and a base size that represents
/// the smallest expected item size (used as the item size of the smallest-sized bin)
Create a new `MultiArena` collection using `Arena` bins and a base size that represents
the smallest expected item size (used as the item size of the smallest-sized bin)
Create a new ` MultiArena ` collection using ` Arena ` bins and a base size that represents the smallest expected item size ( used as the item size of the smallest - sized bin )
pub fn new(ident: Ident, typical_chunk_size: usize, base_size: usize, storage: Rc<dyn ChunkStorage>) -> Self {
        let mut multi_arena = MultiArena {
            typical_chunk_size,
            base_size,
            used_bin_sizes: Vector::<usize>::new(ident.sub("bin_sizes"), 1024, Rc::clone(&storage)),
            ident,
            bins: Vec::new(),
            storage
        };
        let n_bins = multi_arena.used_bin_sizes.len();
        for i in 0..n_bins {
            let size = *multi_arena.used_bin_sizes.at(i).unwrap();
            multi_arena.get_or_insert_bin_for_size(size);
        }
        multi_arena
    }
pub fn new ( ident : Ident , typical_chunk_size : usize , base_size : usize , storage : Rc < dyn ChunkStorage > ) -> Self { let mut multi_arena = MultiArena { typical_chunk_size , base_size , used_bin_sizes : Vector :: < usize > :: new ( ident . sub ( " " ) , 1024 , Rc :: clone ( & storage ) ) , ident , bins : Vec :: new ( ) , storage } ; let n_bins = multi_arena . used_bin_sizes . len ( ) ; for i in 0 .. n_bins { let size = * multi_arena . used_bin_sizes . at ( i ) . unwrap ( ) ; multi_arena . get_or_insert_bin_for_size ( size ) ; } multi_arena }
Create a new `MultiArena` collection using `Arena` bins and a base size that represents
the smallest expected item size (used as the item size of the smallest-sized bin)
Create a new ` MultiArena ` collection using ` Arena ` bins and a base size that represents the smallest expected item size ( used as the item size of the smallest - sized bin )
ident
Ident
typical_chunk_size
usize
base_size
usize
storage
Rc<dyn ChunkStorage>
ident
Ident
typical_chunk_size
usize
base_size
usize
storage
Rc<dyn ChunkStorage>