pub struct TableRef(_);
Expand description
Reference to a table (See TableInstance
for details).
This reference has a reference-counting semantics.
Methods from Deref<Target = TableInstance>§
sourcepub fn initial_size(&self) -> u32
pub fn initial_size(&self) -> u32
Returns size this table was created with.
sourcepub fn maximum_size(&self) -> Option<u32>
pub fn maximum_size(&self) -> Option<u32>
Returns maximum size TableInstance
can grow to.
sourcepub fn current_size(&self) -> u32
pub fn current_size(&self) -> u32
Returns current size of the table.
sourcepub fn grow(&self, by: u32) -> Result<(), Error>
pub fn grow(&self, by: u32) -> Result<(), Error>
Increases the size of the table by given number of elements.
Errors
Returns Err
if tried to allocate more elements than permited by limit.