pub trait VecExt<T>: VecAllocExt<T, Global> {
// Required method
fn try_with_capacity(capacity: usize) -> Result<Self, AllocError>;
}
Expand description
Extension for Vec<T>
Required Methods§
fn try_with_capacity(capacity: usize) -> Result<Self, AllocError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.