Registry / utility / readwrite

readwrite

JSON →
library0.2.0rscratesunverified

Combines Read and Write traits into a single object for bidirectional I/O.

# Cargo.toml [dependencies] readwrite = "0.2.0"
INSTALL
IMPORT
SIG · READWRITE
R
readwrite
utilityrustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ReadWrite
use readwrite::ReadWrite;

Wraps a buffer into a Read+Write object.

use readwrite::ReadWrite; use std::io::{Read, Write}; fn main() { let mut buf = Vec::new(); let mut rw = ReadWrite::new(&mut buf); rw.write_all(b"hello").unwrap(); let mut out = String::new(); rw.read_to_string(&mut out).unwrap(); println!("{}", out); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
readwrite — cargo add readwrite · libregistry