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: Wherewhere
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 TokenStreamAuto Trait Implementations§
impl RefUnwindSafe for WhereClause
impl !Send for WhereClause
impl !Sync for WhereClause
impl Unpin for WhereClause
impl UnwindSafe for WhereClause
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