https://github.com/fyralabs/string-reader
Readers for &str and String instead of [u8].
https://github.com/fyralabs/string-reader
rust str string
Last synced: 12 months ago
JSON representation
Readers for &str and String instead of [u8].
- Host: GitHub
- URL: https://github.com/fyralabs/string-reader
- Owner: FyraLabs
- License: mit
- Created: 2024-02-19T15:01:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-02T05:10:19.000Z (almost 2 years ago)
- Last Synced: 2025-06-30T21:58:13.793Z (12 months ago)
- Topics: rust, str, string
- Language: Rust
- Homepage: https://crates.io/crates/string-reader
- Size: 7.81 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `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.