pub enum WherePredicate {
Type(PredicateType),
Lifetime(PredicateLifetime),
Eq(PredicateEq),
}
Expand description
A single predicate in a where
clause: T: Deserialize<'de>
.
This type is available if Syn is built with the "derive"
or "full"
feature.
§Syntax tree enum
This type is a syntax tree enum.
Variants§
Type(PredicateType)
A type predicate in a where
clause: for<'c> Foo<'c>: Trait<'c>
.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Lifetime(PredicateLifetime)
A lifetime predicate in a where
clause: 'a: 'b + 'c
.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Eq(PredicateEq)
An equality predicate in a where
clause (unsupported).
This type is available if Syn is built with the "derive"
or
"full"
feature.
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 Debug for WherePredicate
impl Debug for WherePredicate
Source§impl From<PredicateEq> for WherePredicate
impl From<PredicateEq> for WherePredicate
Source§fn from(e: PredicateEq) -> WherePredicate
fn from(e: PredicateEq) -> WherePredicate
Converts to this type from the input type.
Source§impl From<PredicateLifetime> for WherePredicate
impl From<PredicateLifetime> for WherePredicate
Source§fn from(e: PredicateLifetime) -> WherePredicate
fn from(e: PredicateLifetime) -> WherePredicate
Converts to this type from the input type.
Source§impl From<PredicateType> for WherePredicate
impl From<PredicateType> for WherePredicate
Source§fn from(e: PredicateType) -> WherePredicate
fn from(e: PredicateType) -> WherePredicate
Converts to this type from the input type.
Source§impl Hash for WherePredicate
impl Hash for WherePredicate
Source§impl PartialEq for WherePredicate
impl PartialEq for WherePredicate
Source§impl Synom for WherePredicate
impl Synom for WherePredicate
Source§impl ToTokens for WherePredicate
impl ToTokens for WherePredicate
impl Eq for WherePredicate
impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.