Struct lasso::MemoryLimits[][src]

pub struct MemoryLimits { /* fields omitted */ }

Settings for the memory consumption of an interner

By default max_memory_usage is set to usize::MAX

Implementations

impl MemoryLimits[src]

pub fn new(max_memory_usage: usize) -> Self[src]

Create a new MemoryLimits with the number of bytes that the interner can allocate

pub fn for_memory_usage(max_memory_usage: usize) -> Self[src]

Create a new MemoryLimits with the number of bytes that the interner can allocate

pub fn max_memory_usage(&self) -> usize[src]

Returns the maximum memory usage this MemoryLimits can allocate

Trait Implementations

impl Clone for MemoryLimits[src]

impl Copy for MemoryLimits[src]

impl Debug for MemoryLimits[src]

impl Default for MemoryLimits[src]

Creates a MemoryLimits with max_memory_usage set to usize::max_value()

impl Eq for MemoryLimits[src]

impl Hash for MemoryLimits[src]

impl Ord for MemoryLimits[src]

impl PartialEq<MemoryLimits> for MemoryLimits[src]

impl PartialOrd<MemoryLimits> for MemoryLimits[src]

impl StructuralEq for MemoryLimits[src]

impl StructuralPartialEq for MemoryLimits[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.