bitcoin_ioTrait BufRead
Source pub trait BufRead: Read {
// Required methods
fn fill_buf(&mut self) -> Result<&[u8]>;
fn consume(&mut self, amount: usize);
}
Expand description
A trait describing an input stream that uses an internal buffer when reading.
Returns data read from this reader, filling the internal buffer if needed.
Marks the buffered data up to amount as consumed.
§Panics
May panic if amount
is greater than amount of data read by fill_buf
.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Source§Available on crate feature std
only.
Source§Available on crate feature std
only.
Source§Available on crate feature std
only.
Source§Available on crate feature std
only.
Source§Available on crate feature std
only.
Source§Available on crate feature std
only.
Source§Available on crate feature std
only.
Source§Available on crate feature std
only.
Source§Available on crate feature std
only.