pub struct Filter<S, F> { /* private fields */ }Expand description
A VectorDiff stream adapter that presents a filtered view of the
underlying ObservableVectors items.
Implementations§
Source§impl<S, F> Filter<S, F>
impl<S, F> Filter<S, F>
Sourcepub fn new(
values: Vector<VectorDiffContainerStreamElement<S>>,
inner: S,
filter: F,
) -> (Vector<VectorDiffContainerStreamElement<S>>, Self)
pub fn new( values: Vector<VectorDiffContainerStreamElement<S>>, inner: S, filter: F, ) -> (Vector<VectorDiffContainerStreamElement<S>>, Self)
Create a new Filter with the given (unfiltered) initial values, stream
of VectorDiff updates for those values, and filter.
Trait Implementations§
Source§impl<S, F> Stream for Filter<S, F>
impl<S, F> Stream for Filter<S, F>
impl<'__pin, S, F> Unpin for Filter<S, F>where
__Origin<'__pin, S, F>: Unpin,
Auto Trait Implementations§
impl<S, F> Freeze for Filter<S, F>
impl<S, F> RefUnwindSafe for Filter<S, F>where
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, F> Send for Filter<S, F>
impl<S, F> Sync for Filter<S, F>
impl<S, F> UnwindSafe for Filter<S, F>where
F: UnwindSafe,
S: 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