https://github.com/jonathanmccormickjr/appendreturn
https://github.com/jonathanmccormickjr/appendreturn
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jonathanmccormickjr/appendreturn
- Owner: JonathanMcCormickJr
- License: unlicense
- Created: 2025-04-19T17:30:52.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2025-04-19T18:11:54.000Z (2 months ago)
- Last Synced: 2025-05-07T11:57:23.870Z (about 2 months ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# appendreturn
This crate is for anyone who is annoyed with the fact that Rust's `.push_str()` method for `String` does not return the resulting value.
This crate is here for you. Hope this helps. ❤️
## License
This software is dedicated into the public domain. See [UNLICENSE](./UNLICENSE) for details.
## Example Usage
```rust
use appendreturn::AppendReturn;
let original_value = String::from("Hello");
let additional_value = " world!!";
let combined_value = original_value.append_and_return(additional_value);
assert_eq!(combined_value, String::from("Hello world!!"));
```