pub trait VecAllocExt {
    type T;

    // Required method
    fn allocated_size(&self) -> usize;
}
Expand description

Extension trait for Vec to account for allocations.

Required Associated Types§

Source

type T

Item type.

Required Methods§

Source

fn allocated_size(&self) -> usize

Return the amount of memory allocated by this Vec (not recursively counting any heap allocations contained within the structure). Does not include the size of self

Implementations on Foreign Types§

Source§

impl<T> VecAllocExt for Vec<T>

Implementors§