[][src]Struct fn_memo::sync::Memo

pub struct Memo<C, F> { /* fields omitted */ }

The synchronized implementation of FnMemo.

Methods

impl<C: Cache, F> Memo<C, F>[src]

pub fn new(f: F) -> Self[src]

Constructs a Memo using C as cache, caching function f.

Trait Implementations

impl<C: Cache, F: RecurFn<C::Arg, C::Output>> FnMemo<<C as Cache>::Arg, <C as Cache>::Output> for Memo<C, F> where
    C::Arg: Clone,
    C::Output: Clone
[src]

Auto Trait Implementations

impl<C, F> Unpin for Memo<C, F> where
    C: Unpin,
    F: Unpin

impl<C, F> Sync for Memo<C, F> where
    C: Sync,
    F: Sync

impl<C, F> Send for Memo<C, F> where
    C: Send,
    F: Send

impl<C, F> UnwindSafe for Memo<C, F> where
    C: UnwindSafe,
    F: UnwindSafe

impl<C, F> RefUnwindSafe for Memo<C, F> where
    C: RefUnwindSafe,
    F: RefUnwindSafe

Blanket Implementations

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

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

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.

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

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

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

impl<T> Erased for T