pub enum WherePredicate {
Type(PredicateType),
Lifetime(PredicateLifetime),
}
Expand description
A single predicate in a where
clause: T: Deserialize<'de>
.
This is a custom variant of syn::WherePredicate
which supports trait
as a parameter bound.
Variants§
Type(PredicateType)
A type predicate in a where
clause: for<'c> Foo<'c>: Trait<'c>
.
Lifetime(PredicateLifetime)
A lifetime predicate in a where
clause: 'a: 'b + 'c
.
Trait Implementations§
Source§impl Debug for WherePredicate
impl Debug for WherePredicate
Source§impl Parse for WherePredicate
impl Parse for WherePredicate
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl ToTokensSubst for WherePredicate
impl ToTokensSubst for WherePredicate
Source§fn to_tokens_subst(&self, tokens: &mut TokenStream, subst: &TokenStream)
fn to_tokens_subst(&self, tokens: &mut TokenStream, subst: &TokenStream)
Write
self
to the given TokenStream
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