You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be convenient to derive get, set, etc for unary tuple structs.
This naming convention has precedent in the standard library. For example, we have std::num::NonZeroU64::get which returns the u64 type that is wrapped by the NonZeroU64 tuple struct.
The text was updated successfully, but these errors were encountered:
Jasha10
changed the title
Handle unary tuple struct
Unary tuple struct getter/setter
Jul 30, 2023
Currently
getset
seems to work with ordinary structs but not with tuple structs:The following also fails:
Pitch
It would be convenient to derive
get
,set
, etc for unary tuple structs.This naming convention has precedent in the standard library. For example, we have
std::num::NonZeroU64::get
which returns theu64
type that is wrapped by theNonZeroU64
tuple struct.The text was updated successfully, but these errors were encountered: