1
Fork 0

spotlight Iterator/Read/Write impls on function return types

This commit is contained in:
QuietMisdreavus 2017-10-04 15:51:35 -05:00 committed by Guillaume Gomez
parent aabfed5e0c
commit cbe4ac3079
7 changed files with 99 additions and 15 deletions

View file

@ -450,6 +450,7 @@ fn read_to_end<R: Read + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> Result<usize>
/// # }
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[doc(spotlight)]
pub trait Read {
/// Pull some bytes from this source into the specified buffer, returning
/// how many bytes were read.
@ -968,6 +969,7 @@ impl Initializer {
/// # }
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[doc(spotlight)]
pub trait Write {
/// Write a buffer into this object, returning how many bytes were written.
///