pub fn grow(&mut self, new_size: usize) -> bool {
    if self.capacity >= new_size {
      return false;
    }

    self.memory.resize(new_size, 0);
    self.capacity = new_size;
    true
  }
/// increases the size of the buffer
///
/// this does nothing if the buffer is already large enough
increases the size of the buffer
this does nothing if the buffer is already large enough
increases the size of the buffer this does nothing if the buffer is already large enough
pub fn grow(&mut self, new_size: usize) -> bool {
    if self.capacity >= new_size {
      return false;
    }
    self.memory.resize(new_size, 0);
    self.capacity = new_size;
    true
  }
pub fn grow ( & mut self , new_size : usize ) -> bool { if self . capacity >= new_size { return false ; } self . memory . resize ( new_size , 0 ) ; self . capacity = new_size ; true }
increases the size of the buffer
this does nothing if the buffer is already large enough
increases the size of the buffer this does nothing if the buffer is already large enough
&mut self
new_size
usize
&mut self
new_size
usize