Searched refs:RepeatWith (Results 1 – 3 of 3) sorted by relevance
13 pub struct RepeatWith<F> { struct17 impl<A, F: FnMut() -> A> Unpin for RepeatWith<F> {} argument19 impl<A, F: FnMut() -> A> Stream for RepeatWith<F> { implementation31 impl<A, F: FnMut() -> A> FusedStream for RepeatWith<F> implementation92 pub fn repeat_with<A, F: FnMut() -> A>(repeater: F) -> RepeatWith<F> { in repeat_with()93 assert_stream::<A, _>(RepeatWith { repeater }) in repeat_with()
74 pub use self::repeat_with::{repeat_with, RepeatWith};
1449 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);