pub struct ObjectKey {
pub value: Option<HandleId>,
}Expand description
A key that uses the identity of an object as its value (Dart’s ObjectKey).
Used to tie the identity of a widget to the identity of an object used to generate that
widget. An object’s identity is its Handle: pass
Some(handle.id()).
See also:
waft_foundation::Key, the base trait for all keys.- The discussion at
Widget.keyfor more information about how widgets use keys.
Fields§
§value: Option<HandleId>The object whose identity is used by this key’s ==. The key names it without keeping
it.
Implementations§
Trait Implementations§
impl Copy for ObjectKey
impl Eq for ObjectKey
Source§impl Key for ObjectKey
impl Key for ObjectKey
impl LocalKey for ObjectKey
impl StructuralPartialEq for ObjectKey
Auto Trait Implementations§
impl Forget for ObjectKey
impl Freeze for ObjectKey
impl Move for ObjectKey
impl RefUnwindSafe for ObjectKey
impl Send for ObjectKey
impl Sync for ObjectKey
impl Unpin for ObjectKey
impl UnsafeUnpin for ObjectKeywhere
NonZeroU32Inner: UnsafeUnpin,
impl UnwindSafe for ObjectKey
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.