Registry / utility / io-trait

io-trait

JSON →
library0.11.0rscratesunverified

I/O traits for abstracting over input/output operations.

# Cargo.toml [dependencies] io-trait = "0.11.0"
INSTALL
IMPORT
SIG · IO-TRAIT
I
io-trait
utilityrustv0.11.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.

Read
use io_trait::Read;

Use the Read trait to read bytes

use io_trait::Read; fn main() { let data = b"hello"; let mut buf = [0u8; 5]; let n = data.read(&mut buf).unwrap(); println!("Read {} bytes", n); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
io-trait — cargo add io-trait · libregistry