Skip to main content

Crate fastring

Crate fastring 

Source
Expand description

§fastring - fast string utilities

Crates.io Documentation License

§Features

  • Basic, mutable string type (String).
  • Ref-counted immutable string type (RcStr).
  • Atomic ref-counted immutable string type (ArcStr).

§Acknowledgements

This crate is highly inspired by the following repositories:

  • arcstr, SPDX-License-Identifier: MIT OR Apache-2.0 OR Zlib
§License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in these crates by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Re-exports§

pub use crate::sync::ArcStr;

Modules§

sync
Atomic-reference-counted string type, with support for zero-cost literals and more.
util
Utilities

Macros§

arc
Constructs a static ArcStr from a string literal.
arcfmt
Conceptually equivalent to ArcStr::new(format!("...", args...)).