Closed programmerjake closed 7 months ago
I have a generic struct MyAttr<Body> that I use to hold a parsed #[my_attr(<body>)], I want to use MyAttr<Nothing>: Clone where I want to hold a parsed #[my_attr], but Nothing doesn't implement Clone.
MyAttr<Body>
#[my_attr(<body>)]
MyAttr<Nothing>: Clone
#[my_attr]
Nothing
Clone
I see no reason why it can't just implement Copy.
Copy
related, it would also be nice to implement ToTokens
ToTokens
Thanks!
I have a generic struct
MyAttr<Body>
that I use to hold a parsed#[my_attr(<body>)]
, I want to useMyAttr<Nothing>: Clone
where I want to hold a parsed#[my_attr]
, butNothing
doesn't implementClone
.I see no reason why it can't just implement
Copy
.