#string #reader #str #read #traits-structs

string-reader

Readers for &str and String instead of [u8]

2 releases

0.1.1 Feb 24, 2024
0.1.0 Feb 19, 2024

#8 in #traits-structs

Download history 250/week @ 2024-02-19 63/week @ 2024-02-26 6/week @ 2024-03-04 14/week @ 2024-03-11 30/week @ 2024-03-25 26/week @ 2024-04-01

71 downloads per month

MIT license

13KB
214 lines

string-reader

string-reader is a crate that provides traits and structs for making readers take in and output &str and String instead of [u8].

Traits

StrRead

The base trait that both &str-like and String-like readers implement.

RealStrRead

The trait that &str-like readable structs implement.

StringRead

The trait that String-like readable structs implement.

StrWrite

&str-like writable structs implement this.

StringWrite

String-like writable structs implement this.

Structs

StrReader

A read and write reader that takes in and outputs &strs.

StringReader

A read and write reader that takes in and outputs Strings.


lib.rs:

Readers for &strs and Strings instead of u8s.

See RealStrRead and StringRead as the traits, and StrReader and StringReader as the structs.

No runtime deps