string-alloc 0.0.3

Allocator-aware no-std-compatible String implementation
Documentation
  • Coverage
  • 91.67%
    22 out of 24 items documented2 out of 23 items with examples
  • Size
  • Source code size: 31.32 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.94 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