Trait lazy_bytes_cast::slice::ByteIndex
[−]
[src]
pub trait ByteIndex: ByteSlice { fn byte(&self, idx: usize) -> Option<u8>; }
Indexing Accessor.
Required 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.