#[derive(BufRead)]
{
// Attributes available to this derive:
#[read]
#[write]
#[descriptor]
}
Expand description
#[derive(BufRead)]
Derives std::io::BufRead for the given struct. std::io::Read must also
be implemented.
Unsupported methods:
split(std-internal implementation)lines(std-internal implementation)has_data_left(unstable feature)
Supported attributes:
#[read]: Marks the field as a read stream.#[read(as_ref)]: Delegates the field to the inner type usingAsRef/AsMut.#[read(deref)]: Delegates the field to the inner type usingDeref/DerefMut.#[read(<function>=<override>)]: Overrides the default<function>method with the given override function.