IndexEntryPayload

Trait IndexEntryPayload 

Source
pub trait IndexEntryPayload:
    Sized
    + AsRef<Self::Content>
    + AsMut<Self::Content>
    + From<Self::Content> {
    type Content: IndexEntryContentSource<Self>;

    // Required method
    fn into_content(self) -> Self::Content;

    // Provided methods
    fn from_content(inner_content: Self::Content) -> Self { ... }
    fn from_content_source<T: IndexEntryContentSource<Self>>(content: T) -> Self { ... }
    fn into_substate(self) -> IndexEntrySubstate<Self> { ... }
}
Expand description

This trait is intended to be implemented by an explicit new type for for the given { content: T } payload of a particular index collection.

Required Associated Types§

Required Methods§

Source

fn into_content(self) -> Self::Content

Provided Methods§

Source

fn from_content(inner_content: Self::Content) -> Self

Source

fn from_content_source<T: IndexEntryContentSource<Self>>(content: T) -> Self

Source

fn into_substate(self) -> IndexEntrySubstate<Self>

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§