Trait ioslice::CastSliceMut
source · pub trait CastSliceMut<'a, T>: CastSlice<'a, T> {
// Required method
fn cast_slice_mut(selves: &'a mut [Self]) -> &'a mut [T];
}
Expand description
A trait for casting slices of different types to and from each other, mutably, provided that they have the same memory layout.
Any modifications to the target type must not be able to violate invariants of the source type.
Required Methods§
fn cast_slice_mut(selves: &'a mut [Self]) -> &'a mut [T]
Object Safety§
This trait is not object safe.