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 Manager
s 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§
Sourcetype ApplyCache: ApplyCache<M, O>
type ApplyCache: ApplyCache<M, O>
The concrete apply cache type
Required Methods§
Sourcefn apply_cache(&self) -> &Self::ApplyCache
fn apply_cache(&self) -> &Self::ApplyCache
Get a shared reference to the contained apply cache
Sourcefn apply_cache_mut(&mut self) -> &mut Self::ApplyCache
fn apply_cache_mut(&mut self) -> &mut Self::ApplyCache
Get a mutable reference to the contained apply cache