pub struct Take<T> { /* private fields */ }
Reader adapter which limits the bytes read from an underlying reader.
This struct is generally created by calling take on a reader. Please see the documentation of take for more details.
take
Returns the number of bytes that can be read before this instance will return EOF.
This instance may reach EOF after reading fewer bytes than indicated by this method if the underlying Read instance reaches EOF.
EOF
Read
use std::io; use std::i