fn compat(self) -> Compat01As03<Self>
        where
            Self: Sized,
        {
            Compat01As03::new(self)
        }
Converts a tokio-io [`AsyncRead`](tokio_io::AsyncRead) into a futures-io 0.3
[`AsyncRead`](futures_io::AsyncRead).

```
# if cfg!(miri) { return; } // https://github.com/rust-lang/futures-rs/issues/2514
# futures::executor::block_on(async {
use futures::io::AsyncReadExt;
use futures_util::compat::AsyncRead01CompatExt;

let input = b"Hello World!";
let reader /* : impl tokio_io::AsyncRead */ = std::io::Cursor::new(input);
let mut reader /* : impl futures::io::AsyncRead + Unpin */ = reader.compat();

let mut output = Vec::with_capacity(12);
reader.read_to_end(&mut output).await.unwrap();
assert_eq!(output, input);
# });
```
futures-util/src/compat/compat01as03.rs