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§
sourcefn into_key(self, info: &LayoutPrimitiveInfo) -> Self::Key
fn into_key(self, info: &LayoutPrimitiveInfo) -> Self::Key
Build a new key from self with info
.
fn make_instance_kind( key: Self::Key, data_handle: Handle<Self>, prim_store: &mut PrimitiveStore, ) -> PrimitiveInstanceKind
Object Safety§
This trait is not object safe.