Struct keyed::Keyed [−][src]
A wrapper for data structures that implements Key
trait.
Trait Implementations
impl<T: Clone> Clone for Keyed<T>
[src]
fn clone(&self) -> Keyed<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for Keyed<T>
[src]
impl<T: Debug> Debug for Keyed<T>
[src]
impl<T: Default> Default for Keyed<T>
[src]
impl<T: Key> Eq for Keyed<T> where
T::Output: Eq,
[src]
T::Output: Eq,
impl<T: Key> From<T> for Keyed<T>
[src]
impl<T: Key> Hash for Keyed<T> where
T::Output: Hash,
[src]
T::Output: Hash,
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Key> Ord for Keyed<T> where
T::Output: Ord,
[src]
T::Output: Ord,
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T: Key> PartialEq<Keyed<T>> for Keyed<T> where
T::Output: PartialEq,
[src]
T::Output: PartialEq,
impl<T: Key> PartialOrd<Keyed<T>> for Keyed<T> where
T::Output: PartialOrd,
[src]
T::Output: PartialOrd,
Auto Trait Implementations
impl<T> Send for Keyed<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Keyed<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Keyed<T> where
T: Unpin,
[src]
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,