Trait byte_slice_cast::ToMutByteSlice

source ·
pub unsafe trait ToMutByteSlice
where Self: Sized,
{ // Required method fn to_mut_byte_slice<T: AsMut<[Self]> + ?Sized>(slice: &mut T) -> &mut [u8] ; }
Expand description

Trait for converting from a mutable slice of a fundamental, built-in numeric type to a mutable byte slice.

This trait is an implementation detail. Use the AsMutByteSlice trait.

Required Methods§

source

fn to_mut_byte_slice<T: AsMut<[Self]> + ?Sized>(slice: &mut T) -> &mut [u8]

Convert from a mutable slice of a fundamental, built-in numeric type to a mutable byte slice

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToMutByteSlice for f32

source§

fn to_mut_byte_slice<T: AsMut<[f32]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for f64

source§

fn to_mut_byte_slice<T: AsMut<[f64]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for i8

source§

fn to_mut_byte_slice<T: AsMut<[i8]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for i16

source§

fn to_mut_byte_slice<T: AsMut<[i16]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for i32

source§

fn to_mut_byte_slice<T: AsMut<[i32]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for i64

source§

fn to_mut_byte_slice<T: AsMut<[i64]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for i128

source§

fn to_mut_byte_slice<T: AsMut<[i128]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for isize

source§

fn to_mut_byte_slice<T: AsMut<[isize]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for u8

source§

fn to_mut_byte_slice<T: AsMut<[u8]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for u16

source§

fn to_mut_byte_slice<T: AsMut<[u16]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for u32

source§

fn to_mut_byte_slice<T: AsMut<[u32]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for u64

source§

fn to_mut_byte_slice<T: AsMut<[u64]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for u128

source§

fn to_mut_byte_slice<T: AsMut<[u128]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for ()

source§

fn to_mut_byte_slice<T: AsMut<[()]> + ?Sized>(_: &mut T) -> &mut [u8]

source§

impl ToMutByteSlice for usize

source§

fn to_mut_byte_slice<T: AsMut<[usize]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [f32; N]

source§

fn to_mut_byte_slice<T: AsMut<[[f32; N]]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [f64; N]

source§

fn to_mut_byte_slice<T: AsMut<[[f64; N]]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [i8; N]

source§

fn to_mut_byte_slice<T: AsMut<[[i8; N]]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [i16; N]

source§

fn to_mut_byte_slice<T: AsMut<[[i16; N]]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [i32; N]

source§

fn to_mut_byte_slice<T: AsMut<[[i32; N]]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [i64; N]

source§

fn to_mut_byte_slice<T: AsMut<[[i64; N]]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [i128; N]

source§

fn to_mut_byte_slice<T: AsMut<[[i128; N]]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [isize; N]

source§

fn to_mut_byte_slice<T: AsMut<[[isize; N]]> + ?Sized>( slice: &mut T, ) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [u8; N]

source§

fn to_mut_byte_slice<T: AsMut<[[u8; N]]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [u16; N]

source§

fn to_mut_byte_slice<T: AsMut<[[u16; N]]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [u32; N]

source§

fn to_mut_byte_slice<T: AsMut<[[u32; N]]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [u64; N]

source§

fn to_mut_byte_slice<T: AsMut<[[u64; N]]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [u128; N]

source§

fn to_mut_byte_slice<T: AsMut<[[u128; N]]> + ?Sized>(slice: &mut T) -> &mut [u8]

source§

impl<const N: usize> ToMutByteSlice for [usize; N]

source§

fn to_mut_byte_slice<T: AsMut<[[usize; N]]> + ?Sized>( slice: &mut T, ) -> &mut [u8]

Implementors§