pub struct AttnResHub<T> { /* private fields */ }Expand description
Stream map keyed by hidden/residual pointer bits (DevicePtr.0).
Layer 0 inserts; last layer removes on success. Any Err drops the
entry (umbrella 940bd4eeb).
Implementations§
Source§impl<T> AttnResHub<T>
impl<T> AttnResHub<T>
pub fn insert(&mut self, key: u64, v: T)
pub fn get(&self, key: u64) -> Option<&T>
pub fn remove(&mut self, key: u64) -> Option<T>
pub fn contains(&self, key: u64) -> bool
pub fn decode<R, E>( &mut self, key: u64, f: impl FnOnce(&mut AttnResHub<T>) -> Result<R, E>, ) -> Result<R, E>
Trait Implementations§
Source§impl<T> Debug for AttnResHub<T>where
T: Debug,
impl<T> Debug for AttnResHub<T>where
T: Debug,
Source§impl<T> Default for AttnResHub<T>
impl<T> Default for AttnResHub<T>
Source§fn default() -> AttnResHub<T>
fn default() -> AttnResHub<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for AttnResHub<T>
impl<T> RefUnwindSafe for AttnResHub<T>where
T: RefUnwindSafe,
impl<T> Send for AttnResHub<T>where
T: Send,
impl<T> Sync for AttnResHub<T>where
T: Sync,
impl<T> Unpin for AttnResHub<T>where
T: Unpin,
impl<T> UnwindSafe for AttnResHub<T>where
T: 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