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 unwrap_to_usize(self) -> usize; fn to_usize(self) -> Result<usize>; fn to_string() -> String; fn decremented(self) -> Option<Self>; // Provided methods fn to_folder_name(value_name: &str) -> String { ... } fn path(path: &Path, value_name: &str) -> PathBuf { ... } }

Required Methods§

Provided Methods§

Source

fn to_folder_name(value_name: &str) -> String

Source

fn path(path: &Path, value_name: &str) -> PathBuf

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,