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
Based on this comment, the methods were added when making them inherent impls on arrays wasn't possible. This has presumably been fixed in the intervening years.
Motivation, use-cases
bar.foo() is easier to read than Namespace::foo(bar).
But because MaybeUninit isn't Deref, having these as inherent methods rather than associated functions (like they need to be on ManuallyDrop) sounds reasonable to me.
SUPERCILEX
changed the title
Move MaybeUninit static methods to member/extension methods
Move MaybeUninit static methods to inherent methods
Oct 17, 2022
Proposal
Problem statement
Based on this comment, the methods were added when making them inherent impls on arrays wasn't possible. This has presumably been fixed in the intervening years.
Motivation, use-cases
bar.foo()
is easier to read thanNamespace::foo(bar)
.Solution sketches
The text was updated successfully, but these errors were encountered: