SortedIndexKeyFullContent

Trait SortedIndexKeyFullContent 

Source
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§

Source

fn from_sort_key_and_content(sort_key: u16, content: Payload::Content) -> Self

Source

fn as_content(&self) -> &Payload::Content

Provided Methods§

Source

fn as_sort_key_and_content(&self) -> (u16, &Payload::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.

Implementors§