oom_safe

Trait VecExt

Source
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§

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.

Implementations on Foreign Types§

Source§

impl<T> VecExt<T> for Vec<T>

Implementors§