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§

source

fn cast_slice_mut(selves: &'a mut [Self]) -> &'a mut [T]

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> CastSliceMut<'_, T> for T