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 TokenStream