#[non_exhaustive]pub struct TableEntry<K, V> {
pub key: K,
pub value: Option<V>,
}
Expand description
An entry from a query table, for debugging and inspecting the table state.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key: K
key of the query
value: Option<V>
value of the query, if it is stored
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for TableEntry<K, V>
impl<K: Clone, V: Clone> Clone for TableEntry<K, V>
Source§fn clone(&self) -> TableEntry<K, V>
fn clone(&self) -> TableEntry<K, V>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<K: Ord, V: Ord> Ord for TableEntry<K, V>
impl<K: Ord, V: Ord> Ord for TableEntry<K, V>
Source§fn cmp(&self, other: &TableEntry<K, V>) -> Ordering
fn cmp(&self, other: &TableEntry<K, V>) -> Ordering
1.21.0 · 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
Source§impl<K: PartialOrd, V: PartialOrd> PartialOrd for TableEntry<K, V>
impl<K: PartialOrd, V: PartialOrd> PartialOrd for TableEntry<K, V>
impl<K: Eq, V: Eq> Eq for TableEntry<K, V>
impl<K, V> StructuralPartialEq for TableEntry<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for TableEntry<K, V>
impl<K, V> RefUnwindSafe for TableEntry<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for TableEntry<K, V>
impl<K, V> Sync for TableEntry<K, V>
impl<K, V> Unpin for TableEntry<K, V>
impl<K, V> UnwindSafe for TableEntry<K, V>where
K: UnwindSafe,
V: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more