Skip to main content

MemoryUse

Trait MemoryUse 

Source
pub trait MemoryUse {
    type Arg;

    // Required methods
    fn memory_use(&self) -> usize;
    fn new_with_limit(arg: Self::Arg, memory_limit: usize) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn memory_use(&self) -> usize

Source

fn new_with_limit(arg: Self::Arg, memory_limit: usize) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl MemoryUse for BitMatrix

Source§

type Arg = usize

Source§

fn memory_use(&self) -> usize

Source§

fn new_with_limit(num_columns: usize, memory_limit: usize) -> Self

Source§

impl MemoryUse for BitVec

Source§

type Arg = ()

Source§

fn memory_use(&self) -> usize

Source§

fn new_with_limit(_arg: (), memory_limit: usize) -> Self

Source§

impl<T> MemoryUse for Vec<T>

Source§

type Arg = ()

Source§

fn memory_use(&self) -> usize

Source§

fn new_with_limit(_arg: (), memory_limit: usize) -> Self

Implementors§