pub struct Filtered<T, F, G> { /* private fields */ }Expand description
Result of Generator::filter.
Trait Implementations§
Source§impl<T, F, G> Generator<T> for Filtered<T, F, G>
impl<T, F, G> Generator<T> for Filtered<T, F, G>
Source§fn map<U, F>(self, f: F) -> Mapped<T, U, F, Self>
fn map<U, F>(self, f: F) -> Mapped<T, U, F, Self>
Transform generated values using a function. Read more
Source§fn flat_map<U, G, F>(self, f: F) -> FlatMapped<T, U, G, F, Self>
fn flat_map<U, G, F>(self, f: F) -> FlatMapped<T, U, G, F, Self>
Generate a value, then use it to choose or configure another generator. Read more
Auto Trait Implementations§
impl<T, F, G> !Freeze for Filtered<T, F, G>
impl<T, F, G> RefUnwindSafe for Filtered<T, F, G>
impl<T, F, G> Send for Filtered<T, F, G>
impl<T, F, G> Sync for Filtered<T, F, G>
impl<T, F, G> Unpin for Filtered<T, F, G>
impl<T, F, G> UnsafeUnpin for Filtered<T, F, G>where
G: UnsafeUnpin,
F: UnsafeUnpin,
impl<T, F, G> UnwindSafe for Filtered<T, F, G>
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