Trait IndexConversion

Source
pub trait IndexConversion {
    // Required method
    fn index(self) -> isize;
}
Expand description

A helper trait to convert difference indices type to a slice index.

Required Methods§

Source

fn index(self) -> isize

Converts into a slice index.

Implementations on Foreign Types§

Source§

impl IndexConversion for i32

Source§

fn index(self) -> isize

Source§

impl IndexConversion for isize

Source§

fn index(self) -> isize

Source§

impl IndexConversion for usize

Source§

fn index(self) -> isize

Implementors§