pub enum Constraint {
Type {
ident: Ident,
colon_token: Colon,
ty: Box<Type>,
},
Expr(TokenStream),
}Variants§
Implementations§
Source§impl Constraint
impl Constraint
fn to_tokens_inner(&self, tokens: &mut TokenStream)
Trait Implementations§
Source§impl Debug for Constraint
impl Debug for Constraint
Source§impl Parse for Constraint
impl Parse for Constraint
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl !Send for Constraint
impl !Sync for Constraint
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Unpin for Constraint
impl UnsafeUnpin for Constraint
impl UnwindSafe for Constraint
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