Struct impl_tools_lib::generics::WhereClause
source · pub struct WhereClause {
pub where_token: Where,
pub predicates: Punctuated<WherePredicate, Comma>,
}
Expand description
A where
clause in a definition: where T: Deserialize<'de>, D: 'static
.
This is a custom variant of syn::WhereClause
which supports trait
as a parameter bound.
Fields§
§where_token: Where
where
predicates: Punctuated<WherePredicate, Comma>
Parameter bounds
Trait Implementations§
source§impl Debug for WhereClause
impl Debug for WhereClause
source§impl Parse for WhereClause
impl Parse for WhereClause
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl ToTokensSubst for WhereClause
impl ToTokensSubst for WhereClause
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