Struct cameleon::genapi::NoCacheGenApiCtxt
source · pub struct NoCacheGenApiCtxt {
pub node_store: DefaultNodeStore,
pub value_ctxt: ValueCtxt<DefaultValueStore, CacheSink>,
pub reg_desc: RegisterDescription,
}
Expand description
GenApi
context.
This context doesn’t cache any value of GenApi
nodes.
Fields§
§node_store: DefaultNodeStore
Node store.
value_ctxt: ValueCtxt<DefaultValueStore, CacheSink>
Value context.
reg_desc: RegisterDescription
Register description.
Trait Implementations§
source§impl Debug for NoCacheGenApiCtxt
impl Debug for NoCacheGenApiCtxt
source§impl From<DefaultGenApiCtxt> for NoCacheGenApiCtxt
impl From<DefaultGenApiCtxt> for NoCacheGenApiCtxt
source§fn from(from: DefaultGenApiCtxt) -> Self
fn from(from: DefaultGenApiCtxt) -> Self
Converts to this type from the input type.
source§fn from(from: NoCacheGenApiCtxt) -> Self
fn from(from: NoCacheGenApiCtxt) -> Self
Converts to this type from the input type.
source§impl FromXml for NoCacheGenApiCtxt
impl FromXml for NoCacheGenApiCtxt
source§fn from_xml(xml: &impl AsRef<str>) -> ControlResult<Self>where
Self: Sized + GenApiCtxt,
fn from_xml(xml: &impl AsRef<str>) -> ControlResult<Self>where Self: Sized + GenApiCtxt,
Parse GenApi
context and build `
source§impl GenApiCtxt for NoCacheGenApiCtxt
impl GenApiCtxt for NoCacheGenApiCtxt
§type NS = DefaultNodeStore
type NS = DefaultNodeStore
A type that implements
NodeStore
§type VS = DefaultValueStore
type VS = DefaultValueStore
A type that implements
ValueStore
§type CS = CacheSink
type CS = CacheSink
A type that implements
CacheStore
source§fn 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.
source§fn node_store(&self) -> &Self::NS
fn node_store(&self) -> &Self::NS
Returns
NodeStore
in the context.source§fn clear_cache(&mut self)
fn clear_cache(&mut self)
Clear all cache of the context.
Auto Trait Implementations§
impl RefUnwindSafe for NoCacheGenApiCtxt
impl Send for NoCacheGenApiCtxt
impl Sync for NoCacheGenApiCtxt
impl Unpin for NoCacheGenApiCtxt
impl UnwindSafe for NoCacheGenApiCtxt
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more