pub struct Index<T>{ /* private fields */ }Expand description
Index
The Index is a sorted structure that is used to quickly find matches
The counter is used to make sure each Index is unique, even if the prefix are the same, and also to make sure that earlier indexes matches first
Implementations§
Trait Implementations§
Source§impl<T> From<(T, SubId, SubscriptionGlobalId)> for Index<T>
impl<T> From<(T, SubId, SubscriptionGlobalId)> for Index<T>
Source§fn from((prefix, id, counter): (T, SubId, SubscriptionGlobalId)) -> Self
fn from((prefix, id, counter): (T, SubId, SubscriptionGlobalId)) -> Self
Converts to this type from the input type.
Source§impl<T> Ord for Index<T>
impl<T> Ord for Index<T>
Source§impl<T> PartialOrd for Index<T>
impl<T> PartialOrd for Index<T>
impl<T> Eq for Index<T>
impl<T> StructuralPartialEq for Index<T>
Auto Trait Implementations§
impl<T> Freeze for Index<T>where
T: Freeze,
impl<T> RefUnwindSafe for Index<T>where
T: RefUnwindSafe,
impl<T> Send for Index<T>
impl<T> Sync for Index<T>
impl<T> Unpin for Index<T>where
T: Unpin,
impl<T> UnwindSafe for Index<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