2 releases
| 0.1.1 | Feb 24, 2024 |
|---|---|
| 0.1.0 | Feb 19, 2024 |
#21 in #traits-structs
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.