string-alloc 0.0.1

Allocator-aware no-std-compatible String implementation
Documentation
  • Coverage
  • 4.55%
    1 out of 22 items documented1 out of 21 items with examples
  • Size
  • Source code size: 19.03 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.74 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Determinant

string-alloc

An allocator-aware, no_std-compatible implementation of String<A> that mirrors std::string::String.

Features

  • UTF-8 correctness
  • Full no_std support via extern crate alloc
  • Custom allocator compatibility

Usage

use string_alloc::String;
use std::alloc::Global;

let mut s = String::from_str_in("hello", Global);
s.push_str(" world");

License

Apache-2.0