1 2 3 4 5 6
use std::io; pub trait Stream : io::Read + io::Seek {} impl<T> Stream for T where T: io::Read + io::Seek {}