Struct syn::Constraint
source · [−]pub struct Constraint {
pub ident: Ident,
pub colon_token: Colon,
pub bounds: Punctuated<TypeParamBound, Add>,
}
Expand description
An associated type bound: Iterator<Item: Display>
.
This type is available only if Syn is built with the "derive"
or "full"
feature.
Fields
ident: Ident
colon_token: Colon
bounds: Punctuated<TypeParamBound, Add>
Trait Implementations
sourceimpl Parse for Constraint
impl Parse for Constraint
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations
impl RefUnwindSafe for Constraint
impl !Send for Constraint
impl !Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
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