Trait hdk::prelude::U8Index

source ·
pub trait U8Index {
    // Required method
    fn index(&self) -> usize;
}
Expand description

Helper trait for types that are internally represented as u8 but need to be used as indicies into containers.

Required Methods§

source

fn index(&self) -> usize

Get the usize index from this type.

Implementors§