Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. struct PollEvented<E> {
  2. phantom: std::marker::PhantomData<E>,
  3. }
  4.  
  5. impl<'a, E> std::io::Read for &'a PollEvented<E>
  6. where
  7. &'a E: std::io::Read,
  8. {
  9. fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
  10. unimplemented!()
  11. }
  12. }
  13.  
  14. fn bar<R>(r: &R) {
  15. std::io::Read::read_exact(&mut r, &mut [])
  16. //std::io::copy(&mut r, unimplemented!())
  17. //std::io::BufReader::new(r)
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement