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

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

fn byte_slice<'a>(&'a self) -> &'a [u8]

Returns read-only slice over integer bytes

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]

Returns mutable slice over integer bytes

Loading content...

Implementations on Foreign Types

impl ByteSlice for u8[src]

fn byte_slice<'a>(&'a self) -> &'a [u8][src]

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]

impl ByteSlice for i8[src]

fn byte_slice<'a>(&'a self) -> &'a [u8][src]

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]

impl ByteSlice for u16[src]

fn byte_slice<'a>(&'a self) -> &'a [u8][src]

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]

impl ByteSlice for i16[src]

fn byte_slice<'a>(&'a self) -> &'a [u8][src]

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]

impl ByteSlice for u32[src]

fn byte_slice<'a>(&'a self) -> &'a [u8][src]

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]

impl ByteSlice for i32[src]

fn byte_slice<'a>(&'a self) -> &'a [u8][src]

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]

impl ByteSlice for f32[src]

fn byte_slice<'a>(&'a self) -> &'a [u8][src]

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]

impl ByteSlice for u64[src]

fn byte_slice<'a>(&'a self) -> &'a [u8][src]

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]

impl ByteSlice for i64[src]

fn byte_slice<'a>(&'a self) -> &'a [u8][src]

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]

impl ByteSlice for f64[src]

fn byte_slice<'a>(&'a self) -> &'a [u8][src]

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]

impl ByteSlice for usize[src]

fn byte_slice<'a>(&'a self) -> &'a [u8][src]

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]

impl ByteSlice for isize[src]

fn byte_slice<'a>(&'a self) -> &'a [u8][src]

fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]

Loading content...

Implementors

Loading content...