Realloc

Trait Realloc 

Source
pub trait Realloc {
    // Required method
    fn realloc(&mut self, new_size: usize);
}
Expand description

A trait allowing for efficient reallocation.

Required Methods§

Source

fn realloc(&mut self, new_size: usize)

Implementations on Foreign Types§

Source§

impl<K, V, S> Realloc for HashMap<K, V, S>
where K: Eq + Hash, S: BuildHasher,

Source§

fn realloc(&mut self, new_size: usize)

Source§

impl<T: Default + Clone> Realloc for Vec<T>

Source§

fn realloc(&mut self, new_size: usize)

Implementors§