azul_webrender::intern

Trait Internable

Source
pub trait Internable: MallocSizeOf {
    type Key: Eq + Hash + Clone + Debug + MallocSizeOf + InternDebug + InternSerialize + for<'a> InternDeserialize<'a>;
    type StoreData: From<Self::Key> + MallocSizeOf + InternSerialize + for<'a> InternDeserialize<'a>;
    type InternData: MallocSizeOf + InternSerialize + for<'a> InternDeserialize<'a>;

    const PROFILE_COUNTER: usize;
}
Expand description

Implement Internable for a type that wants to participate in interning.

Required Associated Constants§

Required Associated Types§

Source

type Key: Eq + Hash + Clone + Debug + MallocSizeOf + InternDebug + InternSerialize + for<'a> InternDeserialize<'a>

Source

type StoreData: From<Self::Key> + MallocSizeOf + InternSerialize + for<'a> InternDeserialize<'a>

Source

type InternData: MallocSizeOf + InternSerialize + for<'a> InternDeserialize<'a>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Internable for PrimitiveKeyKind

Source§

const PROFILE_COUNTER: usize = 85usize

Source§

type Key = PrimitiveKey

Source§

type StoreData = PrimitiveTemplate

Source§

type InternData = ()

Implementors§