Trait byte_slice_cast::ToByteSlice
source · [−]pub unsafe trait ToByteSlice where
Self: Sized, {
fn to_byte_slice<T: AsRef<[Self]> + ?Sized>(slice: &T) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
}
Expand description
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.