bytes-text 0.1.0

Reference-counted UTF-8 text
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented3 out of 3 items with examples
  • Size
  • Source code size: 47.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.79 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Cyborus04/bytes-text
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Cyborus04

bytes-text

crates.io docs build status

Text is to Bytes what String is to Vec<u8>

Example

let text = Text::from("Hello, world!");
println!("{}", text);

let hello = text.get(..5).unwrap();
assert_eq!(hello, "Hello");

(this crate is not offically related to bytes)

License

This project is licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.