Trait byte_slice_cast::ToMutByteSlice[][src]

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][src]

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

Loading content...

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]

Loading content...

Implementors

Loading content...