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
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
Implementations on Foreign Types
impl ByteSlice for u8[src]
impl ByteSlice for u8fn byte_slice<'a>(&'a self) -> &'a [u8][src]
fn byte_slice<'a>(&'a self) -> &'a [u8]fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]impl ByteSlice for i8[src]
impl ByteSlice for i8fn byte_slice<'a>(&'a self) -> &'a [u8][src]
fn byte_slice<'a>(&'a self) -> &'a [u8]fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]impl ByteSlice for u16[src]
impl ByteSlice for u16fn byte_slice<'a>(&'a self) -> &'a [u8][src]
fn byte_slice<'a>(&'a self) -> &'a [u8]fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]impl ByteSlice for i16[src]
impl ByteSlice for i16fn byte_slice<'a>(&'a self) -> &'a [u8][src]
fn byte_slice<'a>(&'a self) -> &'a [u8]fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]impl ByteSlice for u32[src]
impl ByteSlice for u32fn byte_slice<'a>(&'a self) -> &'a [u8][src]
fn byte_slice<'a>(&'a self) -> &'a [u8]fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]impl ByteSlice for i32[src]
impl ByteSlice for i32fn byte_slice<'a>(&'a self) -> &'a [u8][src]
fn byte_slice<'a>(&'a self) -> &'a [u8]fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]impl ByteSlice for f32[src]
impl ByteSlice for f32fn byte_slice<'a>(&'a self) -> &'a [u8][src]
fn byte_slice<'a>(&'a self) -> &'a [u8]fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]impl ByteSlice for u64[src]
impl ByteSlice for u64fn byte_slice<'a>(&'a self) -> &'a [u8][src]
fn byte_slice<'a>(&'a self) -> &'a [u8]fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]impl ByteSlice for i64[src]
impl ByteSlice for i64fn byte_slice<'a>(&'a self) -> &'a [u8][src]
fn byte_slice<'a>(&'a self) -> &'a [u8]fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]impl ByteSlice for f64[src]
impl ByteSlice for f64fn byte_slice<'a>(&'a self) -> &'a [u8][src]
fn byte_slice<'a>(&'a self) -> &'a [u8]fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]impl ByteSlice for usize[src]
impl ByteSlice for usizefn byte_slice<'a>(&'a self) -> &'a [u8][src]
fn byte_slice<'a>(&'a self) -> &'a [u8]fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]impl ByteSlice for isize[src]
impl ByteSlice for isizefn byte_slice<'a>(&'a self) -> &'a [u8][src]
fn byte_slice<'a>(&'a self) -> &'a [u8]fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8][src]
fn byte_mut_slice<'a>(&'a mut self) -> &'a mut [u8]