Trait ObjectIndex

Source
pub trait ObjectIndex:
    Debug
    + Display
    + Ord
    + Hash
    + Eq
    + Borrow<str> {
    // Required method
    fn as_index(&self) -> &str;
}
Expand description

Owned object index

Required Methods§

Source

fn as_index(&self) -> &str

Borrow the index

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.

Implementations on Foreign Types§

Source§

impl ObjectIndex for String

Source§

fn as_index(&self) -> &str

Source§

impl ObjectIndex for KStringBase<Box<str>>

Source§

fn as_index(&self) -> &str

Source§

impl ObjectIndex for KStringCowBase<'_>

Source§

fn as_index(&self) -> &str

Implementors§