pub struct ItemKey(pub String);Expand description
Identity of a result that is stable across queries.
Two Items produced by different searches compare equal when they refer
to the same underlying thing, which is what lets the UI animate between
result sets rather than replacing them.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ItemKey
impl<'de> Deserialize<'de> for ItemKey
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
impl Eq for ItemKey
Source§impl Ord for ItemKey
impl Ord for ItemKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ItemKey
impl PartialOrd for ItemKey
impl StructuralPartialEq for ItemKey
Auto Trait Implementations§
impl Forget for ItemKey
impl Freeze for ItemKey
impl RefUnwindSafe for ItemKey
impl Send for ItemKey
impl Sync for ItemKey
impl Unpin for ItemKey
impl UnsafeUnpin for ItemKey
impl UnwindSafe for ItemKey
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