pub trait VecAllocExt<T, A: Allocator>: Sized + Sealed {
    fn try_with_capacity_in(
        capacity: usize,
        alloc: A
    ) -> Result<Self, TryReserveError>;
fn try_push(&mut self, value: T) -> Result<(), TryReserveError>;
fn try_resize(
        &mut self,
        new_len: usize,
        value: T
    ) -> Result<(), TryReserveError>
    where
        T: Copy
;
fn try_resize_with<F>(
        &mut self,
        new_len: usize,
        f: F
    ) -> Result<(), TryReserveError>
    where
        F: FnMut() -> T
;
fn try_extend_from_slice(
        &mut self,
        other: &[T]
    ) -> Result<(), TryReserveError>
    where
        T: Copy
; }
Expand description

Extension for Vec<T, A>

Required methods

Implementations on Foreign Types

Implementors