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
Doesn't have any mention of #[repr(transparent)], and AFAIK it would be required for it to be zero cost abstraction and don't affect how it is passed in parameters (being passed in registers instead as a pointer to struct or whatever).
P.S. even documentation on repr transparent feature has newtype as example of intended usage
Page that describes New Type Idiom https://doc.rust-lang.org/stable/rust-by-example/generics/new_types.html
Doesn't have any mention of
#[repr(transparent)]
, and AFAIK it would be required for it to be zero cost abstraction and don't affect how it is passed in parameters (being passed in registers instead as a pointer to struct or whatever).P.S. even documentation on repr transparent feature has newtype as example of intended usage
https://doc.rust-lang.org/1.26.2/unstable-book/language-features/repr-transparent.html
The text was updated successfully, but these errors were encountered: