pub type ImageTemplate = PrimTemplate<ImageData>;

Aliased Type§

struct ImageTemplate {
    pub common: PrimTemplateCommonData,
    pub kind: ImageData,
}

Fields§

§common: PrimTemplateCommonData§kind: ImageData

Trait Implementations§

source§

impl From<PrimKey<Image>> for PrimTemplate<ImageData>

source§

fn from(image: PrimKey<Image>) -> Self

Converts to this type from the input type.
source§

impl<T> MallocSizeOf for PrimTemplate<T>where T: MallocSizeOf,

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
source§

impl<T> Serialize for PrimTemplate<T>where T: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more