appendreturn 0.1.0

Rust's `.push_str()` method for `String` does not return the resulting value. This crate fixes that by providing a new trait method for String. Just import this crate, then call `.append_and_return()` on a String
Documentation
  • Coverage
  • 33.33%
    1 out of 3 items documented1 out of 3 items with examples
  • Size
  • Source code size: 4.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.03 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • JonathanMcCormickJr/appendreturn
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JonathanMcCormickJr

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 for details.

Example Usage

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!!"));