Skip to main content

SlotChange

Enum SlotChange 

Source
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>

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<N: Debug, M: Debug, T: Debug> Debug for SlotChange<N, M, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<N: PartialEq, M: PartialEq, T: PartialEq> PartialEq for SlotChange<N, M, T>

Source§

fn eq(&self, other: &SlotChange<N, M, T>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<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>
where N: Freeze, M: Freeze, T: Freeze,

§

impl<N, M, T> RefUnwindSafe for SlotChange<N, M, T>

§

impl<N, M, T> Send for SlotChange<N, M, T>
where N: Send, M: Send, T: Send,

§

impl<N, M, T> Sync for SlotChange<N, M, T>
where N: Sync, M: Sync, T: Sync,

§

impl<N, M, T> Unpin for SlotChange<N, M, T>
where N: Unpin, M: Unpin, T: Unpin,

§

impl<N, M, T> UnsafeUnpin for SlotChange<N, M, T>

§

impl<N, M, T> UnwindSafe for SlotChange<N, M, T>
where N: UnwindSafe, M: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<S, T> PropAsRef<S> for T
where S: PartialEq + ToOwned<Owned = T> + ?Sized, T: Borrow<S>,

Source§

fn property_as_ref(&self) -> &S

Borrow &Self as &S .
Source§

fn property_to_owned(s: &S) -> T
where T: Sized,

Clone &S as a new Self .
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.