pub struct ReactiveList<T> {
pub delta: Node<ListChange<T>>,
pub snapshot: Node<Vec<T>>,
pub pull_id: LockId,
/* private fields */
}Expand description
ReactiveList data container.
Fields§
§delta: Node<ListChange<T>>delta field for delta.
snapshot: Node<Vec<T>>snapshot field for snapshot.
pull_id: LockIdpull_id field for pull id.
Implementations§
Source§impl<T: Clone + 'static> ReactiveList<T>
impl<T: Clone + 'static> ReactiveList<T>
Sourcepub fn new(initial: Vec<T>, options: ReactiveListOptions) -> Self
pub fn new(initial: Vec<T>, options: ReactiveListOptions) -> Self
Creates or computes new.
Sourcepub fn append_many(&self, values: Vec<T>)
pub fn append_many(&self, values: Vec<T>)
Updates or reads append_many.
Sourcepub fn insert_many(&self, index: usize, values: Vec<T>)
pub fn insert_many(&self, index: usize, values: Vec<T>)
Updates or reads insert_many.
Sourcepub fn append_from(&self, src: &Node<T>) -> Box<dyn FnOnce()>
pub fn append_from(&self, src: &Node<T>) -> Box<dyn FnOnce()>
Updates or reads append_from.
Trait Implementations§
Source§impl<T: Clone> Clone for ReactiveList<T>
impl<T: Clone> Clone for ReactiveList<T>
Source§fn clone(&self) -> ReactiveList<T>
fn clone(&self) -> ReactiveList<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for ReactiveList<T>
impl<T> !RefUnwindSafe for ReactiveList<T>
impl<T> !Send for ReactiveList<T>
impl<T> !Sync for ReactiveList<T>
impl<T> Unpin for ReactiveList<T>where
T: Unpin,
impl<T> UnsafeUnpin for ReactiveList<T>
impl<T> !UnwindSafe for ReactiveList<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