Home
last modified time | relevance | path

Searched refs:next_if_eq (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/futures/tests/
Dstream_peekable.rs41 assert_eq!(s.as_mut().next_if_eq(&"trillian").await, None); in peekable_next_if_eq()
42 assert_eq!(s.as_mut().next_if_eq(&"Heart").await, Some("Heart")); in peekable_next_if_eq()
45 assert_eq!(s.as_mut().next_if_eq(&"of").await, Some("of")); in peekable_next_if_eq()
46 assert_eq!(s.as_mut().next_if_eq(&"zaphod").await, None); in peekable_next_if_eq()
54 assert_eq!(s.as_mut().next_if_eq("Ludicrous").await, Some("Ludicrous".into())); in peekable_next_if_eq()
55 assert_eq!(s.as_mut().next_if_eq("speed").await, Some("speed".into())); in peekable_next_if_eq()
56 assert_eq!(s.as_mut().next_if_eq("").await, None); in peekable_next_if_eq()
/external/rust/crates/futures-util/src/stream/stream/
Dpeek.rs178 pub fn next_if_eq<'a, T>(self: Pin<&'a mut Self>, expected: &'a T) -> NextIfEq<'a, St, T> in next_if_eq() method