std_helper 0.1.0

Modification of standart crate
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented3 out of 3 items with examples
  • Size
  • Source code size: 31.95 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.44 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • 1kawdalg/std_helper_rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • 1kawdalg

Modification of standard Rust library.

Example:

#[macro_use] extern crate std_helper;
use std_helper::StrHelper;

fn str_helper_example() -> std::io::Result<()> {
    let mut helper = str!("Hello, Rust!");

    let result = helper.remove("Rust").unwrap();
    assert_eq!(result, "Hello, !");

    helper.push("World");
    assert_eq!(helper.as_str(), "Hello, !World");

    helper.move_to_the_end((7, 8));
    assert_eq!(helper.as_str(), "Hello, World!");

    Ok(())
}

str_helper_example().unwrap();