Trait lazy_bytes_cast::slice::ByteSlice[][src]

pub unsafe trait ByteSlice: Sized {
    fn byte_slice<'a>(&'a self) -> &'a [u8] { ... }
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8] { ... } }

Slice Accessor.

Note that one must be careful when impl this trait for own types.

Provided Methods

Returns read-only slice over integer bytes

Returns mutable slice over integer bytes

Implementations on Foreign Types

impl ByteSlice for u8
[src]

impl ByteSlice for i8
[src]

impl ByteSlice for u16
[src]

impl ByteSlice for i16
[src]

impl ByteSlice for u32
[src]

impl ByteSlice for i32
[src]

impl ByteSlice for f32
[src]

impl ByteSlice for u64
[src]

impl ByteSlice for i64
[src]

impl ByteSlice for f64
[src]

impl ByteSlice for usize
[src]

impl ByteSlice for isize
[src]

Implementors