pub struct ChangeSet<R: View> {
pub resultset: ResultSet<R>,
pub changes: Vec<ItemChange<R>>,
}Fields§
§resultset: ResultSet<R>§changes: Vec<ItemChange<R>>Implementations§
Source§impl<R> ChangeSet<R>
impl<R> ChangeSet<R>
Sourcepub fn initial(&self) -> Vec<R>
pub fn initial(&self) -> Vec<R>
Returns items from the initial query load (before subscription was active)
Sourcepub fn added(&self) -> Vec<R>
pub fn added(&self) -> Vec<R>
Returns genuinely new items (added after subscription, or now match the predicate)
Sourcepub fn appeared(&self) -> Vec<R>
pub fn appeared(&self) -> Vec<R>
Returns all items that appeared in the result set (initial load + newly added)
Sourcepub fn adds(&self) -> Vec<R>
👎Deprecated since 0.7.10: Use appeared(), initial(), or added() instead
pub fn adds(&self) -> Vec<R>
appeared(), initial(), or added() insteadReturns all items that were added or now match the query
Sourcepub fn removed(&self) -> Vec<R>
pub fn removed(&self) -> Vec<R>
Returns all items that were removed or no longer match the query
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for ChangeSet<R>
impl<R> RefUnwindSafe for ChangeSet<R>where
R: RefUnwindSafe,
impl<R> Send for ChangeSet<R>where
R: Send,
impl<R> Sync for ChangeSet<R>where
R: Sync,
impl<R> Unpin for ChangeSet<R>where
R: Unpin,
impl<R> UnwindSafe for ChangeSet<R>where
R: UnwindSafe,
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.