Trait HasApplyCache

Source
pub trait HasApplyCache<M: Manager, O: Copy> {
    type ApplyCache: ApplyCache<M, O>;

    // Required methods
    fn apply_cache(&self) -> &Self::ApplyCache;
    fn apply_cache_mut(&mut self) -> &mut Self::ApplyCache;
}
Expand description

Apply cache container

Intended to be implemented by Managers such that generic implementations of the recursive apply algorithm can simply require M: Manager + HasApplyCache<M, O>, where O is the operator type.

Required Associated Types§

Source

type ApplyCache: ApplyCache<M, O>

The concrete apply cache type

Required Methods§

Source

fn apply_cache(&self) -> &Self::ApplyCache

Get a shared reference to the contained apply cache

Source

fn apply_cache_mut(&mut self) -> &mut Self::ApplyCache

Get a mutable reference to the contained apply cache

Implementors§