pub struct TreeChangeSet<Id> {
pub inserted: SmallVec<[Id; 4]>,
pub moved: SmallVec<[Id; 4]>,
pub removed: SmallVec<[Id; 4]>,
pub selection: TreeSelectionUpdate<Id>,
}Expand description
The exact model changes needed to reconcile widget state.
Fields§
§inserted: SmallVec<[Id; 4]>§moved: SmallVec<[Id; 4]>§removed: SmallVec<[Id; 4]>§selection: TreeSelectionUpdate<Id>Trait Implementations§
Source§impl<Id: Clone> Clone for TreeChangeSet<Id>
impl<Id: Clone> Clone for TreeChangeSet<Id>
Source§fn clone(&self) -> TreeChangeSet<Id>
fn clone(&self) -> TreeChangeSet<Id>
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 moreSource§impl<Id: Debug> Debug for TreeChangeSet<Id>
impl<Id: Debug> Debug for TreeChangeSet<Id>
Source§impl<Id: Default> Default for TreeChangeSet<Id>
impl<Id: Default> Default for TreeChangeSet<Id>
Source§fn default() -> TreeChangeSet<Id>
fn default() -> TreeChangeSet<Id>
Returns the “default value” for a type. Read more
impl<Id: Eq> Eq for TreeChangeSet<Id>
Source§impl<Id: PartialEq> PartialEq for TreeChangeSet<Id>
impl<Id: PartialEq> PartialEq for TreeChangeSet<Id>
impl<Id: PartialEq> StructuralPartialEq for TreeChangeSet<Id>
Auto Trait Implementations§
impl<Id> Freeze for TreeChangeSet<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for TreeChangeSet<Id>where
Id: RefUnwindSafe,
impl<Id> Send for TreeChangeSet<Id>where
Id: Send,
impl<Id> Sync for TreeChangeSet<Id>where
Id: Sync,
impl<Id> Unpin for TreeChangeSet<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for TreeChangeSet<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for TreeChangeSet<Id>where
Id: UnwindSafe + RefUnwindSafe,
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<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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more