Trait byte_slice_cast::ToByteSlice[][src]

pub unsafe trait ToByteSlice where
    Self: Sized
{ fn to_byte_slice<T: AsRef<[Self]> + ?Sized>(slice: &T) -> &[u8]; }

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

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

Required methods

fn to_byte_slice<T: AsRef<[Self]> + ?Sized>(slice: &T) -> &[u8][src]

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

Loading content...

Implementations on Foreign Types

impl ToByteSlice for u8[src]

impl ToByteSlice for u16[src]

impl ToByteSlice for u32[src]

impl ToByteSlice for u64[src]

impl ToByteSlice for u128[src]

impl ToByteSlice for i8[src]

impl ToByteSlice for i16[src]

impl ToByteSlice for i32[src]

impl ToByteSlice for i64[src]

impl ToByteSlice for i128[src]

impl ToByteSlice for f32[src]

impl ToByteSlice for f64[src]

impl ToByteSlice for usize[src]

impl ToByteSlice for isize[src]

Loading content...

Implementors

Loading content...