pub struct InterestMap<T> { /* private fields */ }Implementations§
Source§impl<T> InterestMap<T>
impl<T> InterestMap<T>
pub fn new() -> Self
pub fn from_raw(raw: HashMap<T, HashSet<Interest>>) -> Self
pub fn insert(&mut self, interest: Interest, value: T)
pub fn find(&self, subject: &Subject) -> HashSet<&T>
pub fn delete(&mut self, value: &T)
pub fn interest_of(&self, value: &T) -> Option<&HashSet<Interest>>
Trait Implementations§
Source§impl<T: Clone> Clone for InterestMap<T>
impl<T: Clone> Clone for InterestMap<T>
Source§fn clone(&self) -> InterestMap<T>
fn clone(&self) -> InterestMap<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for InterestMap<T>
impl<T: Debug> Debug for InterestMap<T>
Source§impl<T> Default for InterestMap<T>
impl<T> Default for InterestMap<T>
Source§impl<'de, T> Deserialize<'de> for InterestMap<T>
impl<'de, T> Deserialize<'de> for InterestMap<T>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for InterestMap<T>
impl<T> RefUnwindSafe for InterestMap<T>where
T: RefUnwindSafe,
impl<T> Send for InterestMap<T>where
T: Send,
impl<T> Sync for InterestMap<T>where
T: Sync,
impl<T> Unpin for InterestMap<T>where
T: Unpin,
impl<T> UnsafeUnpin for InterestMap<T>
impl<T> UnwindSafe for InterestMap<T>where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
impl<T> AppData for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
impl<T> AppDataResponse for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
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