Skip to main content

TotalMemory

Trait TotalMemory 

Source
pub trait TotalMemory {
    // Provided methods
    fn total_memory(&self) -> usize { ... }
    fn stack_memory(&self) -> usize { ... }
    fn heap_memory(&self) -> usize { ... }
}
Expand description

Return total amount of memory in bytes.

Provided Methods§

Source

fn total_memory(&self) -> usize

Total amount of memory in bytes.

Source

fn stack_memory(&self) -> usize

Get amount of stack memory in bytes.

Source

fn heap_memory(&self) -> usize

Get amount of heap memory in bytes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl TotalMemory for MultiPolygon

Source§

impl TotalMemory for Rc<Manifold>

Source§

impl<T> TotalMemory for Vec<T>

Implementors§