pub fn grow(&mut self, added_pages: u32) -> Result<(), StableMemoryError> {
        let old_page_count = stable_grow(added_pages)?;
        self.capacity = old_page_count + added_pages;
        Ok(())
    }
/// Attempts to grow the memory by adding new pages.
Attempts to grow the memory by adding new pages.
Attempts to grow the memory by adding new pages .
pub fn grow(&mut self, added_pages: u32) -> Result<(), StableMemoryError> {
        let old_page_count = stable_grow(added_pages)?;
        self.capacity = old_page_count + added_pages;
        Ok(())
    }
pub fn grow ( & mut self , added_pages : u32 ) -> Result < ( ) , StableMemoryError > { let old_page_count = stable_grow ( added_pages ) ? ; self . capacity = old_page_count + added_pages ; Ok ( ( ) ) }
Attempts to grow the memory by adding new pages.
Attempts to grow the memory by adding new pages .
&mut self
added_pages
u32