pub trait IndexDomain: 'static + Clone {
type Owned: 'static + Clone + Eq + Hash + OwnedIndex;
type Index<'a>: Clone + Eq + Hash
where Self: 'a;
// Required methods
fn to_owned(index: &Self::Index<'_>) -> Self::Owned;
fn from_owned(owned: &Self::Owned) -> Self::Index<'_>;
}Required Associated Types§
type Owned: 'static + Clone + Eq + Hash + OwnedIndex
type Index<'a>: Clone + Eq + Hash where Self: 'a
Required Methods§
fn to_owned(index: &Self::Index<'_>) -> Self::Owned
fn from_owned(owned: &Self::Owned) -> Self::Index<'_>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".