Trait hdk::prelude::U8Index

pub trait U8Index {
    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

Get the usize index from this type.

Implementors