Enum impl_tools_lib::generics::WherePredicate
source · 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 TokenStreamAuto Trait Implementations§
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