Trait cameleon::genapi::GenApiCtxt
source · pub trait GenApiCtxt {
type NS: NodeStore;
type VS: ValueStore;
type CS: CacheStore;
// Required methods
fn enter<F, R>(&mut self, f: F) -> R
where F: FnOnce(&Self::NS, &mut ValueCtxt<Self::VS, Self::CS>) -> R;
fn node_store(&self) -> &Self::NS;
// Provided method
fn clear_cache(&mut self) { ... }
}
Expand description
A trait that provides accesss to GenApi
context.
Required Associated Types§
sourcetype VS: ValueStore
type VS: ValueStore
A type that implements ValueStore
sourcetype CS: CacheStore
type CS: CacheStore
A type that implements CacheStore
Required Methods§
sourcefn enter<F, R>(&mut self, f: F) -> Rwhere
F: FnOnce(&Self::NS, &mut ValueCtxt<Self::VS, Self::CS>) -> R,
fn enter<F, R>(&mut self, f: F) -> Rwhere F: FnOnce(&Self::NS, &mut ValueCtxt<Self::VS, Self::CS>) -> R,
Provide access to the context.
sourcefn node_store(&self) -> &Self::NS
fn node_store(&self) -> &Self::NS
Returns NodeStore
in the context.
Provided Methods§
sourcefn clear_cache(&mut self)
fn clear_cache(&mut self)
Clear all cache of the context.