#[repr(transparent)]pub(crate) struct Valid<I>(pub I);
Expand description
An internal ID that has been checked to point to a valid object in the storages.
Tuple Fields§
§0: I
Trait Implementations§
source§impl<'de, I> Deserialize<'de> for Valid<I>where
I: Deserialize<'de>,
impl<'de, I> Deserialize<'de> for Valid<I>where I: Deserialize<'de>,
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
source§impl<I: Ord> Ord for Valid<I>
impl<I: Ord> Ord for Valid<I>
source§impl<I: PartialEq> PartialEq<Valid<I>> for Valid<I>
impl<I: PartialEq> PartialEq<Valid<I>> for Valid<I>
source§impl<I: PartialOrd> PartialOrd<Valid<I>> for Valid<I>
impl<I: PartialOrd> PartialOrd<Valid<I>> for Valid<I>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<I: Copy> Copy for Valid<I>
impl<I: Eq> Eq for Valid<I>
impl<I> StructuralEq for Valid<I>
impl<I> StructuralPartialEq for Valid<I>
Auto Trait Implementations§
impl<I> RefUnwindSafe for Valid<I>where I: RefUnwindSafe,
impl<I> Send for Valid<I>where I: Send,
impl<I> Sync for Valid<I>where I: Sync,
impl<I> Unpin for Valid<I>where I: Unpin,
impl<I> UnwindSafe for Valid<I>where I: 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.