pub enum WherePredicate {
BoundPredicate(WhereBoundPredicate),
RegionPredicate(WhereRegionPredicate),
EqPredicate(WhereEqPredicate),
}
Expand description
A single predicate in a where
clause
Variants§
BoundPredicate(WhereBoundPredicate)
A type binding, e.g. for<'c> Foo: Send+Clone+'c
RegionPredicate(WhereRegionPredicate)
A lifetime predicate, e.g. 'a: 'b+'c
EqPredicate(WhereEqPredicate)
An equality predicate (unsupported)
Trait Implementations§
Source§impl Clone for WherePredicate
impl Clone for WherePredicate
Source§fn clone(&self) -> WherePredicate
fn clone(&self) -> WherePredicate
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 From<WhereBoundPredicate> for WherePredicate
impl From<WhereBoundPredicate> for WherePredicate
Source§fn from(e: WhereBoundPredicate) -> WherePredicate
fn from(e: WhereBoundPredicate) -> WherePredicate
Converts to this type from the input type.
Source§impl From<WhereEqPredicate> for WherePredicate
impl From<WhereEqPredicate> for WherePredicate
Source§fn from(e: WhereEqPredicate) -> WherePredicate
fn from(e: WhereEqPredicate) -> WherePredicate
Converts to this type from the input type.
Source§impl From<WhereRegionPredicate> for WherePredicate
impl From<WhereRegionPredicate> for WherePredicate
Source§fn from(e: WhereRegionPredicate) -> WherePredicate
fn from(e: WhereRegionPredicate) -> WherePredicate
Converts to this type from the input type.
Source§impl Synom for WherePredicate
impl Synom for WherePredicate
Auto Trait Implementations§
impl Freeze for WherePredicate
impl RefUnwindSafe for WherePredicate
impl !Send for WherePredicate
impl !Sync for WherePredicate
impl Unpin for WherePredicate
impl UnwindSafe for WherePredicate
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