Searched refs:is_pair_of (Results 1 – 3 of 3) sorted by relevance
53 assert_eq!(r1.is_pair_of(&w1), true); in split_stream_id()54 assert_eq!(r1.is_pair_of(&w2), false); in split_stream_id()55 assert_eq!(r2.is_pair_of(&w2), true); in split_stream_id()56 assert_eq!(r2.is_pair_of(&w1), false); in split_stream_id()
65 pub fn is_pair_of(&self, other: &WriteHalf<T>) -> bool { in is_pair_of() method66 other.is_pair_of(&self) in is_pair_of()78 if self.is_pair_of(&wr) { in unsplit()95 pub fn is_pair_of(&self, other: &ReadHalf<T>) -> bool { in is_pair_of() method
901 - `io::ReadHalf::is_pair_of` checks if provided `WriteHalf` is for the same