Registry / utility / stringreader

stringreader

JSON →
library0.1.1rscratesunverified

Provides a wrapper for strings so that they can be consumed via the std::io::Read trait.

# Cargo.toml [dependencies] stringreader = "0.1.1"
INSTALL
IMPORT
SIG · STRINGREADER
S
stringreader
utilityrustv0.1.1
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.

StringReader
use stringreader::StringReader;

Reads a string as if it were an I/O stream.

use stringreader::StringReader; use std::io::Read; fn main() { let mut reader = StringReader::new("Hello, world!"); let mut buf = String::new(); reader.read_to_string(&mut buf).unwrap(); println!("Read: {}", buf); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
stringreader — cargo add stringreader · libregistry