unsafe fn realloc_for(&mut self, len: usize) {
        if len < self.len {
            self.shrink(len);
        } else if len > self.capacity() {
            self.grow(len);
        }
    }
/// Reallocates if necessary to hold a vector of the given length
/// unsafe because the new capacity may be less than self.len
Reallocates if necessary to hold a vector of the given length
unsafe because the new capacity may be less than self.len
Reallocates if necessary to hold a vector of the given length unsafe because the new capacity may be less than self . len
unsafe fn realloc_for(&mut self, len: usize) {
        if len < self.len {
            self.shrink(len);
        } else if len > self.capacity() {
            self.grow(len);
        }
    }
unsafe fn realloc_for ( & mut self , len : usize ) { if len < self . len { self . shrink ( len ) ; } else if len > self . capacity ( ) { self . grow ( len ) ; } }
Reallocates if necessary to hold a vector of the given length
unsafe because the new capacity may be less than self.len
Reallocates if necessary to hold a vector of the given length unsafe because the new capacity may be less than self . len
&mut self
len
usize