5 releases
Uses old Rust 2015
0.0.5 | Apr 14, 2016 |
---|---|
0.0.4 | Apr 14, 2016 |
0.0.3 | May 11, 2015 |
0.0.2 | Feb 28, 2015 |
0.0.1 | Feb 27, 2015 |
#22 in #seek
11KB
258 lines
reverse-io
A crate supplying a wrapper type that reverses std::io::{Read,Write,Seek}
extern crate reverse_io;
use std::io::{Seek, File, Read, Write};
fn main() {
let f = File::open("hi").unwrap();
let t = reverse_io::T(f);
let v = vec![];
t.seek(std::io::SeekFrom::Start(0)).unwrap();
t.read_to_end(&mut v).unwrap();
println!("{:?}", v);
}