Trait scrypto_test::prelude::SortedIndexEntryPayload
source · pub trait SortedIndexEntryPayload: Sized + AsRef<Self::Content> + AsMut<Self::Content> + From<Self::Content> {
type Content: SortedIndexEntryContentSource<Self>;
// Required method
fn into_content(self) -> Self::Content;
// Provided methods
fn from_content(inner_content: Self::Content) -> Self { ... }
fn from_content_source<T>(content: T) -> Self
where T: SortedIndexEntryContentSource<Self> { ... }
fn into_substate(self) -> SortedIndexEntrySubstate<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 sorted index collection.
Required Associated Types§
type Content: SortedIndexEntryContentSource<Self>
Required Methods§
fn into_content(self) -> Self::Content
Provided Methods§
fn from_content(inner_content: Self::Content) -> Self
fn from_content_source<T>(content: T) -> Selfwhere
T: SortedIndexEntryContentSource<Self>,
fn into_substate(self) -> SortedIndexEntrySubstate<Self>
Object Safety§
This trait is not object safe.