Closed WhyNotHugo closed 2 years ago
Why do traits need to be defined as pub unsafe trait? Isn't declaring the function unsafe fn enough?
pub unsafe trait
unsafe fn
The traits are not meant to be implemented by any one outside the crate. It's extra incentive for users to not go near it. Also some of the traits have safe functions.
Thanks!
Why do traits need to be defined as
pub unsafe trait
? Isn't declaring the functionunsafe fn
enough?