pub enum SlotChange<N, M, T> {
Unchanged(N, M, T),
DataChanged(N, M, T),
Added(N, M, T),
Removed(M),
}Expand description
A helper type for slot changes
It is auto-managed by the #[component] .
Do not touch unless you know how it works exactly.
Variants§
Unchanged(N, M, T)
The slot is not changed.
DataChanged(N, M, T)
The data of the slot may have changed.
Added(N, M, T)
The slot is added.
Removed(M)
The slot is removed.
Trait Implementations§
Source§impl<N: Clone, M: Clone, T: Clone> Clone for SlotChange<N, M, T>
impl<N: Clone, M: Clone, T: Clone> Clone for SlotChange<N, M, T>
Source§fn clone(&self) -> SlotChange<N, M, T>
fn clone(&self) -> SlotChange<N, M, T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<N: PartialEq, M: PartialEq, T: PartialEq> StructuralPartialEq for SlotChange<N, M, T>
Auto Trait Implementations§
impl<N, M, T> Freeze for SlotChange<N, M, T>
impl<N, M, T> RefUnwindSafe for SlotChange<N, M, T>
impl<N, M, T> Send for SlotChange<N, M, T>
impl<N, M, T> Sync for SlotChange<N, M, T>
impl<N, M, T> Unpin for SlotChange<N, M, T>
impl<N, M, T> UnsafeUnpin for SlotChange<N, M, T>
impl<N, M, T> UnwindSafe for SlotChange<N, M, T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, T> PropAsRef<S> for T
impl<S, T> PropAsRef<S> for T
Source§fn property_as_ref(&self) -> &S
fn property_as_ref(&self) -> &S
Borrow
&Self as &S .Source§fn property_to_owned(s: &S) -> Twhere
T: Sized,
fn property_to_owned(s: &S) -> Twhere
T: Sized,
Clone
&S as a new Self .