pub struct ComponentKey { /* private fields */ }Expand description
Used as a key for Component storage. Component instances receive these in their constructor methods, and should retain them as a tool to update their state.
Implementations§
Source§impl ComponentKey
impl ComponentKey
Sourcepub fn placeholder() -> ComponentKey
pub fn placeholder() -> ComponentKey
A placeholder value, used purely for ensuring the diffing algorithm remains readable by reducing some unwrapping hell.
Trait Implementations§
Source§impl Clone for ComponentKey
impl Clone for ComponentKey
Source§fn clone(&self) -> ComponentKey
fn clone(&self) -> ComponentKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentKey
impl Debug for ComponentKey
Source§impl Hash for ComponentKey
impl Hash for ComponentKey
Source§impl PartialEq for ComponentKey
impl PartialEq for ComponentKey
impl Copy for ComponentKey
impl Eq for ComponentKey
impl StructuralPartialEq for ComponentKey
Auto Trait Implementations§
impl Freeze for ComponentKey
impl RefUnwindSafe for ComponentKey
impl Send for ComponentKey
impl Sync for ComponentKey
impl Unpin for ComponentKey
impl UnwindSafe for ComponentKey
Blanket Implementations§
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