https://github.com/gsquire/string-builder
A simple string builder crate for Rust
https://github.com/gsquire/string-builder
Last synced: 4 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-19T04:52:52.000Z (over 7 years ago)
- Last Synced: 2025-04-15T00:08:24.758Z (3 months ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# string-builder
[](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