Trait webrender::intern::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 Types§
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>
Required Associated Constants§
const PROFILE_COUNTER: usize
Object Safety§
This trait is not object safe.