pub enum Type<T, B> {
Json,
Id(T),
Blank(B),
Invalid(String),
}
Variants§
Implementations§
Trait Implementations§
source§impl<T, B> PartialEq<Type<T, B>> for Type<T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
impl<T, B> PartialEq<Type<T, B>> for Type<T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
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>,
impl<T, B> Eq for Type<T, B>where
T: Eq,
B: Eq,
impl<T, B> StructuralEq for Type<T, B>
impl<T, B> StructuralPartialEq for Type<T, B>
Auto Trait Implementations§
impl<T, B> RefUnwindSafe for Type<T, B>where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B> Send for Type<T, B>where
B: Send,
T: Send,
impl<T, B> Sync for Type<T, B>where
B: Sync,
T: Sync,
impl<T, B> Unpin for Type<T, B>where
B: Unpin,
T: Unpin,
impl<T, B> UnwindSafe for Type<T, B>where
B: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
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.