Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gsquire/string-builder
A simple string builder crate for Rust
https://github.com/gsquire/string-builder
Last synced: 30 days ago
JSON representation
A simple string builder crate for Rust
- Host: GitHub
- URL: https://github.com/gsquire/string-builder
- Owner: gsquire
- License: mit
- Created: 2018-01-17T07:12:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-19T04:52:52.000Z (almost 7 years ago)
- Last Synced: 2024-08-09T06:35:15.347Z (3 months ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# string-builder
[![Build Status](https://travis-ci.org/gsquire/string-builder.svg?branch=master)](https://travis-ci.org/gsquire/string-builder)This crate is a simple string builder type allowing you to append anything that satisfies the
`ToBytes` trait to it. This includes things such as string slices, owned strings, byte slices,
and characters for example.## Example
```rust
extern crate string_builder;use string_builder::Builder;
fn main() {
let mut b = Builder::default();
b.append("it");
b.append(' ');
b.append("works!");assert_eq!(b.string().unwrap(), "it works!");
}
```
## License
MIT