Home
last modified time | relevance | path

Searched refs:RepeatWith (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/futures-util/src/stream/
Drepeat_with.rs13 pub struct RepeatWith<F> { struct
17 impl<A, F: FnMut() -> A> Unpin for RepeatWith<F> {} argument
19 impl<A, F: FnMut() -> A> Stream for RepeatWith<F> { implementation
31 impl<A, F: FnMut() -> A> FusedStream for RepeatWith<F> implementation
92 pub fn repeat_with<A, F: FnMut() -> A>(repeater: F) -> RepeatWith<F> { in repeat_with()
93 assert_stream::<A, _>(RepeatWith { repeater }) in repeat_with()
Dmod.rs74 pub use self::repeat_with::{repeat_with, RepeatWith};
/external/rust/crates/futures/tests/
Dauto_traits.rs1449 assert_impl!(RepeatWith<()>: Send);
1450 assert_not_impl!(RepeatWith<*const ()>: Send);
1451 assert_impl!(RepeatWith<()>: Sync);
1452 assert_not_impl!(RepeatWith<*const ()>: Sync);
1454 assert_impl!(RepeatWith<fn() -> ()>: Unpin);