pub trait SortedIndexKeyFullContent<Payload>: SortedIndexKeyContentSource<Payload>where
Payload: SortedIndexKeyPayload,{
// Required methods
fn from_sort_key_and_content(
sort_key: u16,
content: <Payload as SortedIndexKeyPayload>::Content,
) -> Self;
fn as_content(&self) -> &<Payload as SortedIndexKeyPayload>::Content;
// Provided method
fn as_sort_key_and_content(
&self,
) -> (u16, &<Payload as SortedIndexKeyPayload>::Content) { ... }
}
Expand description
This trait is intended to be implemented by the canonical content of a key for a particular sorted index collection.
Required Methods§
fn from_sort_key_and_content( sort_key: u16, content: <Payload as SortedIndexKeyPayload>::Content, ) -> Self
fn as_content(&self) -> &<Payload as SortedIndexKeyPayload>::Content
Provided Methods§
fn as_sort_key_and_content( &self, ) -> (u16, &<Payload as SortedIndexKeyPayload>::Content)
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.