pub enum RecycleKey {
Default,
Type(TypeId),
Id(u64),
}Expand description
A key that locates previously recycled containers of the right kind for an item.
Variants§
Default
The default key, for an items control that supports a single container type.
Type(TypeId)
A key identifying containers by a Rust type.
Id(u64)
A key allocated with RecycleKey::new_unique or chosen by the
items control.
Implementations§
Source§impl RecycleKey
impl RecycleKey
Sourcepub fn new_unique() -> Self
pub fn new_unique() -> Self
Allocates a key that is different from every other key on the current thread.
Trait Implementations§
Source§impl Clone for RecycleKey
impl Clone for RecycleKey
impl Copy for RecycleKey
Source§impl Debug for RecycleKey
impl Debug for RecycleKey
impl Eq for RecycleKey
Source§impl Hash for RecycleKey
impl Hash for RecycleKey
Source§impl PartialEq for RecycleKey
impl PartialEq for RecycleKey
impl StructuralPartialEq for RecycleKey
Auto Trait Implementations§
impl Freeze for RecycleKey
impl RefUnwindSafe for RecycleKey
impl Send for RecycleKey
impl Sync for RecycleKey
impl Unpin for RecycleKey
impl UnsafeUnpin for RecycleKey
impl UnwindSafe for RecycleKey
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more