Struct silkenweb::memo::MemoCache[][src]

pub struct MemoCache(_);

MemoCache holds the map of keys to cached values.

Implementations

impl MemoCache[src]

pub fn new() -> MemoCache[src]

pub fn frame(&self) -> MemoFrame[src]

Start a new frame. Values will only be cached until the next frame. If a value is used before MemoFrame is destroyed, it will be cached for the next frame, otherwise it will be removed from the cache.

Trait Implementations

impl Clone for MemoCache[src]

impl Default for MemoCache[src]

Auto Trait Implementations

impl !RefUnwindSafe for MemoCache

impl !Send for MemoCache

impl !Sync for MemoCache

impl Unpin for MemoCache

impl !UnwindSafe for MemoCache

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> 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.