Closed
Description
Default is implemented for &'a [T]
but not &'a mut [T]
. Is there any reason for this? While writing mutually generic code, I needed exactly this. Alternatively the quick work around is to just have my own trait and implement it for both slices.
@rust-lang/libs
My mutually generic code: option_mut and lense (currently working on making lenses
mutually generic through the use of option_mut
)