pub struct Ranked<T> {
pub rank: Rank,
pub inner: T,
}
Expand description
Wrapper type for assigning a rank to an arbitrary value.
Fields§
§rank: Rank
the attributed rank
inner: T
the inner value
Trait Implementations§
Source§impl<T> SearchEntry for Ranked<T>where
T: SearchEntry,
impl<T> SearchEntry for Ranked<T>where
T: SearchEntry,
Source§type Id = <T as SearchEntry>::Id
type Id = <T as SearchEntry>::Id
The unique document identifier type.
impl<T: Copy> Copy for Ranked<T>
impl<T: Eq> Eq for Ranked<T>
impl<T> StructuralPartialEq for Ranked<T>
Auto Trait Implementations§
impl<T> Freeze for Ranked<T>where
T: Freeze,
impl<T> RefUnwindSafe for Ranked<T>where
T: RefUnwindSafe,
impl<T> Send for Ranked<T>where
T: Send,
impl<T> Sync for Ranked<T>where
T: Sync,
impl<T> Unpin for Ranked<T>where
T: Unpin,
impl<T> UnwindSafe for Ranked<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