Trait Indexable

Source
pub trait Indexable {
    // Required method
    fn to_index(&self) -> usize;
}
Expand description

A trait which allows you to customize how indexes are stored on your side of the api

Required Methods§

Source

fn to_index(&self) -> usize

Allows the library to convert your type to its internal [Index] representation (currently usize)

Implementations on Foreign Types§

Source§

impl Indexable for usize

Source§

fn to_index(&self) -> usize

Implementors§