Trait scrypto_test::prelude::IndexKeyPayload
source · pub trait IndexKeyPayload: Sized + AsRef<Self::Content> + AsMut<Self::Content> + From<Self::Content> {
type Content: IndexKeyContentSource<Self>;
// Required method
fn into_content(self) -> Self::Content;
// Provided methods
fn from_content(content: Self::Content) -> Self { ... }
fn from_content_source<T>(content: T) -> Self
where T: IndexKeyContentSource<Self> { ... }
}
Expand description
This trait is intended to be implemented by an explicit new type for the given
{ content: T }
key of a particular index collection.
Required Associated Types§
type Content: IndexKeyContentSource<Self>
Required Methods§
fn into_content(self) -> Self::Content
Provided Methods§
fn from_content(content: Self::Content) -> Self
fn from_content_source<T>(content: T) -> Selfwhere
T: IndexKeyContentSource<Self>,
Object Safety§
This trait is not object safe.