pub enum TypeRef<'a, T, B> {
Json,
Id(&'a T),
Blank(&'a B),
Invalid(&'a str),
}
Variants§
Implementations§
Trait Implementations§
source§impl<'a, T, B> PartialEq<Type<T, B>> for TypeRef<'a, T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
impl<'a, T, B> PartialEq<Type<T, B>> for TypeRef<'a, T, B>where T: PartialEq<T>, B: PartialEq<B>,
source§impl<'a, T, B> PartialEq<TypeRef<'a, T, B>> for Type<T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
impl<'a, T, B> PartialEq<TypeRef<'a, T, B>> for Type<T, B>where T: PartialEq<T>, B: PartialEq<B>,
source§impl<'a, T, B> PartialEq<TypeRef<'a, T, B>> for TypeRef<'a, T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
impl<'a, T, B> PartialEq<TypeRef<'a, T, B>> for TypeRef<'a, T, B>where T: PartialEq<T>, B: PartialEq<B>,
impl<'a, T, B> Copy for TypeRef<'a, T, B>where T: Copy, B: Copy,
impl<'a, T, B> Eq for TypeRef<'a, T, B>where T: Eq, B: Eq,
impl<'a, T, B> StructuralEq for TypeRef<'a, T, B>
impl<'a, T, B> StructuralPartialEq for TypeRef<'a, T, B>
Auto Trait Implementations§
impl<'a, T, B> RefUnwindSafe for TypeRef<'a, T, B>where B: RefUnwindSafe, T: RefUnwindSafe,
impl<'a, T, B> Send for TypeRef<'a, T, B>where B: Sync, T: Sync,
impl<'a, T, B> Sync for TypeRef<'a, T, B>where B: Sync, T: Sync,
impl<'a, T, B> Unpin for TypeRef<'a, T, B>
impl<'a, T, B> UnwindSafe for TypeRef<'a, T, B>where B: RefUnwindSafe, T: RefUnwindSafe,
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,
fn equivalent(&self, key: &K) -> bool
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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.