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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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
impl Eq 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§fn eq(&self, other: &WherePredicate) -> bool
fn eq(&self, other: &WherePredicate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WherePredicate
Source§impl Synom for WherePredicate
impl Synom for WherePredicate
Auto Trait Implementations§
impl !Send for WherePredicate
impl !Sync for WherePredicate
impl Freeze for WherePredicate
impl RefUnwindSafe for WherePredicate
impl Unpin for WherePredicate
impl UnsafeUnpin 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.