pub struct ReactiveIndex<K, S, V> {
pub delta: Node<IndexChange<K, S, V>>,
pub snapshot: Node<Vec<IndexRow<K, S, V>>>,
pub pull_id: LockId,
/* private fields */
}Expand description
ReactiveIndex data container.
Fields§
§delta: Node<IndexChange<K, S, V>>delta field for delta.
snapshot: Node<Vec<IndexRow<K, S, V>>>snapshot field for snapshot.
pull_id: LockIdpull_id field for pull id.
Implementations§
Source§impl<K, S, V> ReactiveIndex<K, S, V>
impl<K, S, V> ReactiveIndex<K, S, V>
Sourcepub fn new(
initial: Vec<IndexRow<K, S, V>>,
options: ReactiveIndexOptions,
) -> Self
pub fn new( initial: Vec<IndexRow<K, S, V>>, options: ReactiveIndexOptions, ) -> Self
Creates or computes new.
Sourcepub fn range_by_primary(&self, start: &K, end: &K) -> Vec<V>
pub fn range_by_primary(&self, start: &K, end: &K) -> Vec<V>
Updates or reads range_by_primary.
Sourcepub fn delete_many(&self, primaries: Vec<K>)
pub fn delete_many(&self, primaries: Vec<K>)
Updates or reads delete_many.
Sourcepub fn range(
&self,
start: K,
end: K,
) -> ReactiveView<IndexChange<K, S, V>, Vec<V>>
pub fn range( &self, start: K, end: K, ) -> ReactiveView<IndexChange<K, S, V>, Vec<V>>
Updates or reads range.
Trait Implementations§
Auto Trait Implementations§
impl<K, S, V> Freeze for ReactiveIndex<K, S, V>
impl<K, S, V> !RefUnwindSafe for ReactiveIndex<K, S, V>
impl<K, S, V> !Send for ReactiveIndex<K, S, V>
impl<K, S, V> !Sync for ReactiveIndex<K, S, V>
impl<K, S, V> Unpin for ReactiveIndex<K, S, V>
impl<K, S, V> UnsafeUnpin for ReactiveIndex<K, S, V>
impl<K, S, V> !UnwindSafe for ReactiveIndex<K, S, V>
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