Trait oxidd_core::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§
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