#io-read #read-write #io #reverse #seek

reverse_io

A wrapper type allowing the reversing of std::io::{Read, Write, Seek}

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

MIT/Apache

11KB
258 lines

reverse-io

Documentation Build Status Crates.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);
}

No runtime deps