pub struct ValueCtxt<T, U> {
pub value_store: T,
pub cache_store: U,
}
Fields§
§value_store: T
§cache_store: U
Implementations§
source§impl<T, U> ValueCtxt<T, U>
impl<T, U> ValueCtxt<T, U>
pub fn new(value_store: T, cache_store: U) -> ValueCtxt<T, U>
pub fn value_store(&self) -> &T
pub fn value_store_mut(&mut self) -> &mut T
pub fn cache_store(&mut self) -> &Uwhere T: ValueStore, U: CacheStore,
pub fn cache_store_mut(&mut self) -> &mut U
pub fn cache_data( &mut self, nid: NodeId, address: i64, length: i64, value: &[u8] )where U: CacheStore,
pub fn get_cache(&self, nid: NodeId, address: i64, length: i64) -> Option<&[u8]>where U: CacheStore,
pub fn invalidate_cache_by(&mut self, nid: NodeId)where U: CacheStore,
pub fn invalidate_cache_of(&mut self, nid: NodeId)where U: CacheStore,
pub fn clear_cache(&mut self)where U: CacheStore,
Trait Implementations§
Auto Trait Implementations§
impl<T, U> RefUnwindSafe for ValueCtxt<T, U>where T: RefUnwindSafe, U: RefUnwindSafe,
impl<T, U> Send for ValueCtxt<T, U>where T: Send, U: Send,
impl<T, U> Sync for ValueCtxt<T, U>where T: Sync, U: Sync,
impl<T, U> Unpin for ValueCtxt<T, U>where T: Unpin, U: Unpin,
impl<T, U> UnwindSafe for ValueCtxt<T, U>where T: UnwindSafe, U: UnwindSafe,
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