W3cubDocs

/Rust

Struct std::io::Empty

pub struct Empty { /* fields omitted */ }

A reader which is always at EOF.

This struct is generally created by calling empty. Please see the documentation of empty() for more details.

Trait Implementations

impl Read for Empty [src]

Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more

ūüĒ¨ This is a nightly-only experimental API. (read_initializer #42788)

Determines if this Reader can work with buffers of uninitialized memory. Read more

Read all bytes until EOF in this source, placing them into buf. Read more

Read all bytes until EOF in this source, appending them to buf. Read more

Read the exact number of bytes required to fill buf. Read more

‚ďėImportant traits for &'a mut I
impl<'a, I> Iterator for &'a mut I where
    I: Iterator + ?Sized, 
    type Item = <I as Iterator>::Item;
impl<'a, R: Read + ?Sized> Read for &'a mut R
impl<'a, W: Write + ?Sized> Write for &'a mut W

Creates a "by reference" adaptor for this instance of Read. Read more

‚ďėImportant traits for Bytes<R>
impl<R: Read> Iterator for Bytes<R>
    type Item = Result<u8>;

Transforms this Read instance to an [Iterator] over its bytes. Read more

‚ďėImportant traits for Chain<T, U>
impl<T: Read, U: Read> Read for Chain<T, U>

Creates an adaptor which will chain this stream with another. Read more

‚ďėImportant traits for Take<T>
impl<T: Read> Read for Take<T>

Creates an adaptor which will read at most limit bytes from it. Read more

impl BufRead for Empty [src]

Returns the contents of the internal buffer, filling it with more data from the inner reader if it is empty. Read more

Tells this buffer that amt bytes have been consumed from the buffer, so they should no longer be returned in calls to read. Read more

Read all bytes into buf until the delimiter byte or EOF is reached. Read more

Read all bytes until a newline (the 0xA byte) is reached, and append them to the provided buffer. Read more

‚ďėImportant traits for Split<B>
impl<B: BufRead> Iterator for Split<B>
    type Item = Result<Vec<u8>>;

Returns an iterator over the contents of this reader split on the byte byte. Read more

‚ďėImportant traits for Lines<B>
impl<B: BufRead> Iterator for Lines<B>
    type Item = Result<String>;

Returns an iterator over the lines of this reader. Read more

impl Debug for Empty [src]
1.16.0

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Empty

impl Sync for Empty

Blanket Implementations

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

ūüĒ¨ This is a nightly-only experimental API. (try_from #33417)

The type returned in the event of a conversion error.

ūüĒ¨ This is a nightly-only experimental API. (try_from #33417)

Performs the conversion.

impl<T> From for T [src]

Performs the conversion.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

ūüĒ¨ This is a nightly-only experimental API. (try_from #33417)

The type returned in the event of a conversion error.

ūüĒ¨ This is a nightly-only experimental API. (try_from #33417)

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized, 
[src]

‚ďėImportant traits for &'a mut I
impl<'a, I> Iterator for &'a mut I where
    I: Iterator + ?Sized, 
    type Item = <I as Iterator>::Item;
impl<'a, R: Read + ?Sized> Read for &'a mut R
impl<'a, W: Write + ?Sized> Write for &'a mut W

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized, 
[src]

‚ďėImportant traits for &'a mut I
impl<'a, I> Iterator for &'a mut I where
    I: Iterator + ?Sized, 
    type Item = <I as Iterator>::Item;
impl<'a, R: Read + ?Sized> Read for &'a mut R
impl<'a, W: Write + ?Sized> Write for &'a mut W

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

ūüĒ¨ This is a nightly-only experimental API. (get_type_id #27745)this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/io/struct.Empty.html