# String
A UTF-8 encoded string with configurable byte storage.
[](https://travis-ci.org/carllerche/string)
[](https://opensource.org/licenses/MIT)
[](https://crates.io/crates/string)
[](https://docs.rs/string/0.2.1/string/)
## Usage
To use `string`, first add this to your `Cargo.toml`:
```toml
[dependencies]
string = "0.3.1"
```
Next, add this to your crate:
```rust
extern crate string;
use string::{String, TryFrom};
let s: String<[u8; 2]> = String::try_from([b'h', b'i']).unwrap();
assert_eq!(&s[..], "hi");
```
See [documentation](https://docs.rs/string) for more details.