pub fn cast_slice<FROM: 'static + Copy, TO: 'static + Copy>(
    slice: &[FROM]
) -> &[TO]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Expand description

Cast a slice from one type to another.

See crate::cast for more information.