Trait webrender::prim_store::InternablePrimitive

source ·
pub trait InternablePrimitive: Internable<InternData = ()> + Sized {
    // Required methods
    fn into_key(self, info: &LayoutPrimitiveInfo) -> Self::Key;
    fn make_instance_kind(
        key: Self::Key,
        data_handle: Handle<Self>,
        prim_store: &mut PrimitiveStore,
    ) -> PrimitiveInstanceKind;
}
Expand description

Trait for primitives that are directly internable. see SceneBuilder::add_primitive

Required Methods§

source

fn into_key(self, info: &LayoutPrimitiveInfo) -> Self::Key

Build a new key from self with info.

source

fn make_instance_kind( key: Self::Key, data_handle: Handle<Self>, prim_store: &mut PrimitiveStore, ) -> PrimitiveInstanceKind

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl InternablePrimitive for PrimitiveKeyKind

Implementors§