pub fn shrink_to_fit(&mut self, j: &Journal<A>) {
        if self.capacity() != self.len {
            self.shrink_to(self.len, j);
        }
    }
/// Shrinks the capacity of the vector as much as possible.
///
/// It will drop down as close as possible to the length but the allocator
/// may still inform the vector that there is space for a few more elements.
///
/// # ExamplesSlice
///
/// ```
/// # use corundum::vec::Vec;
/// # use corundum::alloc::heap::*;
/// Heap::transaction(|j| {
///     let mut vec = Vec::with_capacity(10, j);
///     vec.extend_from_slice(&[1, 2, 3], j);
///     assert_eq!(vec.capacity(), 10);
///     vec.shrink_to_fit(j);
///     assert!(vec.capacity() >= 3);
/// }).unwrap();
/// ```
Shrinks the capacity of the vector as much as possible.
It will drop down as close as possible to the length but the allocator
may still inform the vector that there is space for a few more elements.
Shrinks the capacity of the vector as much as possible . It will drop down as close as possible to the length but the allocator may still inform the vector that there is space for a few more elements .
pub fn shrink_to_fit(&mut self, j: &Journal<A>) {
        if self.capacity() != self.len {
            self.shrink_to(self.len, j);
        }
    }
pub fn shrink_to_fit ( & mut self , j : & Journal < A > ) { if self . capacity ( ) != self . len { self . shrink_to ( self . len , j ) ; } }
Shrinks the capacity of the vector as much as possible.
Shrinks the capacity of the vector as much as possible .
&mut self
j
&Journal<A>
examplesslice
None
use corundum::vec::vec;
None
use corundum::alloc::heap::*;
None