Struct syn::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 type is available only if Syn is built with the "derive"
or "full"
feature.
Fields
where_token: Where
predicates: Punctuated<WherePredicate, Comma>
Trait Implementations
sourceimpl Parse for WhereClause
impl Parse for WhereClause
fn parse(input: ParseStream<'_>) -> Result<Self>
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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