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
Auto Trait Implementations§
impl Freeze for WhereClause
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