2 releases
0.1.1 | Feb 24, 2024 |
---|---|
0.1.0 | Feb 19, 2024 |
#20 in #traits-structs
21 downloads per month
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 &str
s.
StringReader
A read and write reader that takes in and outputs String
s.
lib.rs
:
Readers for &str
s and String
s instead of u8
s.
See RealStrRead
and StringRead
as the traits, and StrReader
and StringReader
as
the structs.