Trait genet_sdk::slice::TryGet [−][src]
TryGet trait.
Associated Types
type Output
Required Methods
fn try_get(&self, index: T) -> Result<Self::Output, Error>
Returns a byte or subslice depending on the type of index.
Implementors
impl TryGet<Range<usize>> for ByteSlice type Output = ByteSlice;
impl TryGet<RangeInclusive<usize>> for ByteSlice type Output = ByteSlice;
impl TryGet<RangeToInclusive<usize>> for ByteSlice type Output = ByteSlice;
impl TryGet<usize> for ByteSlice type Output = u8;
impl TryGet<RangeTo<usize>> for ByteSlice type Output = ByteSlice;
impl TryGet<RangeFrom<usize>> for ByteSlice type Output = ByteSlice;
impl TryGet<RangeFull> for ByteSlice type Output = ByteSlice;