pub enum KeyRef {
Local(Rc<dyn Key>),
Global(GlobalKey),
}Expand description
Variants§
Local(Rc<dyn Key>)
A key the element tree does not register (Dart’s LocalKey).
Global(GlobalKey)
A key the element tree registers (Dart’s GlobalKey).
Implementations§
Trait Implementations§
impl Eq for KeyRef
Auto Trait Implementations§
impl !RefUnwindSafe for KeyRef
impl !Send for KeyRef
impl !Sync for KeyRef
impl !UnwindSafe for KeyRef
impl Forget for KeyRef
impl Freeze for KeyRef
impl Move for KeyRef
impl Unpin for KeyRef
impl UnsafeUnpin for KeyRef
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.