pub enum AllOrSome<T> {
All,
Some(T),
}
Expand description
An enum signifying that some of type T is allowed, or All
(everything is
allowed).
Default
is implemented for this enum and is All
.
Variants§
Implementations§
Trait Implementations§
source§impl<T> PartialEq<AllOrSome<T>> for AllOrSome<T>where
T: PartialEq<T>,
impl<T> PartialEq<AllOrSome<T>> for AllOrSome<T>where
T: PartialEq<T>,
impl<T> Eq for AllOrSome<T>where
T: Eq,
impl<T> StructuralEq for AllOrSome<T>
impl<T> StructuralPartialEq for AllOrSome<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for AllOrSome<T>where
T: RefUnwindSafe,
impl<T> Send for AllOrSome<T>where
T: Send,
impl<T> Sync for AllOrSome<T>where
T: Sync,
impl<T> Unpin for AllOrSome<T>where
T: Unpin,
impl<T> UnwindSafe for AllOrSome<T>where
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,
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> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more