SortedIndexEntryContentSource

Trait SortedIndexEntryContentSource 

Source
pub trait SortedIndexEntryContentSource<Payload>: Sized
where Payload: SortedIndexEntryPayload,
{ // Required method fn into_content(self) -> <Payload as SortedIndexEntryPayload>::Content; // Provided methods fn into_payload(self) -> Payload { ... } fn into_substate(self) -> SortedIndexEntrySubstate<Payload> { ... } }
Expand description

This trait is intended to be implemented by types which embody the content of a particular sorted index entry payload.

Note:

  • Multiple types might be mappable into the payload, and so implement this trait
  • This trait is only one way - from value into content
  • This trait uses a generic, because the same type might be usable as a payload for multiple substates

Required Methods§

Provided Methods§

Source

fn into_payload(self) -> Payload

Source

fn into_substate(self) -> SortedIndexEntrySubstate<Payload>

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§