pub trait SortedIndexKeyFullContent<Payload: SortedIndexKeyPayload>: SortedIndexKeyContentSource<Payload> {
// Required methods
fn from_sort_key_and_content(
sort_key: u16,
content: Payload::Content
) -> Self;
fn as_content(&self) -> &Payload::Content;
// Provided method
fn as_sort_key_and_content(&self) -> (u16, &Payload::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::Content) -> Self
fn as_content(&self) -> &Payload::Content
Provided Methods§
fn as_sort_key_and_content(&self) -> (u16, &Payload::Content)
Object Safety§
This trait is not object safe.