Trait StoredIndex

Source
pub trait StoredIndex
where Self: Debug + Default + Copy + Clone + PartialEq + Eq + PartialOrd + Ord + TryInto<usize> + From<usize> + Add<usize, Output = Self> + Send + Sync,
{ // Required methods fn to_usize(self) -> Result<usize>; fn to_string<'a>() -> &'a str; }

Required Methods§

Source

fn to_usize(self) -> Result<usize>

Source

fn to_string<'a>() -> &'a str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I> StoredIndex for I
where I: Debug + Default + Copy + Clone + PartialEq + Eq + PartialOrd + Ord + TryInto<usize> + From<usize> + Add<usize, Output = Self> + Send + Sync,