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

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

Indexing Accessor.

Provided Methods

Returns byte from integer by index.

Parameters:

  • idx - Index of byte starting from 0.

Result:

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

Implementations on Foreign Types

impl ByteIndex for u8
[src]

impl ByteIndex for i8
[src]

impl ByteIndex for u16
[src]

impl ByteIndex for i16
[src]

impl ByteIndex for u32
[src]

impl ByteIndex for i32
[src]

impl ByteIndex for f32
[src]

impl ByteIndex for u64
[src]

impl ByteIndex for i64
[src]

impl ByteIndex for f64
[src]

impl ByteIndex for usize
[src]

impl ByteIndex for isize
[src]

Implementors