[][src]Trait lazy_bytes_cast::slice::ByteIndex

pub unsafe trait ByteIndex: ByteSlice {
    fn byte(&self, idx: usize) -> Option<u8> { ... }
}

Indexing Accessor.

Provided methods

fn byte(&self, idx: usize) -> Option<u8>

Returns byte from integer by index.

Parameters:

  • idx - Index of byte starting from 0.

Result:

  • Some - Contains byte.
  • None - Index out of bounds.
Loading content...

Implementations on Foreign Types

impl ByteIndex for u8[src]

fn byte(&self, idx: usize) -> Option<u8>[src]

impl ByteIndex for i8[src]

fn byte(&self, idx: usize) -> Option<u8>[src]

impl ByteIndex for u16[src]

fn byte(&self, idx: usize) -> Option<u8>[src]

impl ByteIndex for i16[src]

fn byte(&self, idx: usize) -> Option<u8>[src]

impl ByteIndex for u32[src]

fn byte(&self, idx: usize) -> Option<u8>[src]

impl ByteIndex for i32[src]

fn byte(&self, idx: usize) -> Option<u8>[src]

impl ByteIndex for f32[src]

fn byte(&self, idx: usize) -> Option<u8>[src]

impl ByteIndex for u64[src]

fn byte(&self, idx: usize) -> Option<u8>[src]

impl ByteIndex for i64[src]

fn byte(&self, idx: usize) -> Option<u8>[src]

impl ByteIndex for f64[src]

fn byte(&self, idx: usize) -> Option<u8>[src]

impl ByteIndex for usize[src]

fn byte(&self, idx: usize) -> Option<u8>[src]

impl ByteIndex for isize[src]

fn byte(&self, idx: usize) -> Option<u8>[src]

Loading content...

Implementors

Loading content...