[][src]Trait byte_slice_cast::ToMutByteSlice

pub unsafe trait ToMutByteSlice where
    Self: Sized
{ fn to_mut_byte_slice<T: AsMut<[Self]> + ?Sized>(slice: &mut T) -> &mut [u8]; }
[]

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

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

Implementations on Foreign Types

impl ToMutByteSlice for u8[src][]

impl ToMutByteSlice for u16[src][]

impl ToMutByteSlice for u32[src][]

impl ToMutByteSlice for u64[src][]

impl ToMutByteSlice for u128[src][]

impl ToMutByteSlice for i8[src][]

impl ToMutByteSlice for i16[src][]

impl ToMutByteSlice for i32[src][]

impl ToMutByteSlice for i64[src][]

impl ToMutByteSlice for i128[src][]

impl ToMutByteSlice for f32[src][]

impl ToMutByteSlice for f64[src][]

impl ToMutByteSlice for usize[src][]

impl ToMutByteSlice for isize[src][]

Implementors