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 u8
fn 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 i8
fn 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 u16
fn 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 i16
fn 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 u32
fn 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 i32
fn 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 f32
fn 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 u64
fn 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 i64
fn 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 f64
fn 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 usize
fn 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 isize
fn 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]