Trait spacetimedb_sats::de::GrowingVec
source · pub trait GrowingVec<T> {
// Required methods
fn with_capacity(cap: usize) -> Self;
fn push(&mut self, elem: T);
}
Expand description
A vector with two operations: with_capacity
and push
.
Required Methods§
sourcefn with_capacity(cap: usize) -> Self
fn with_capacity(cap: usize) -> Self
Create the collection with the given capacity.
Object Safety§
This trait is not object safe.