Implement Stream automatically for Reader + Writer

This is consistent with the existing documentation but was not the
actual behaviour, which I've found to be rather a nuisance, actually.
This commit is contained in:
Chris Morgan 2013-09-05 10:52:18 +10:00
parent b161e09e03
commit da042ce46a

View File

@ -451,6 +451,8 @@ pub trait Writer {
pub trait Stream: Reader + Writer { }
impl<T: Reader + Writer> Stream for T;
pub enum SeekStyle {
/// Seek from the beginning of the stream
SeekSet,