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
sourceimpl Debug for WhereClause
impl Debug for WhereClause
sourceimpl Parse for WhereClause
impl Parse for WhereClause
fn parse(input: ParseStream<'_>) -> Result<Self>
sourceimpl ToTokensSubst for WhereClause
impl ToTokensSubst for WhereClause
sourcefn 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 RefUnwindSafe for WhereClause
impl !Send for WhereClause
impl !Sync for WhereClause
impl Unpin for WhereClause
impl UnwindSafe for WhereClause
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more