sponge_string

Crates.iosponge_string
lib.rssponge_string
version0.1.1
sourcesrc
created_at2019-06-09 17:32:11.324333
updated_at2019-06-09 18:02:29.365765
descriptionSpOnGe StRiNg In RuSt
homepage
repositoryhttps://github.com/dancojocaru2000/sponge_string_rs
max_upload_size
id140023
size3,874
Kenny (dancojocaru2000)

documentation

README

Crates.io

sponge_string_rs

HeY tHeRe! YoU cAn UsE tHiS cRaTe To CrEaTe SpOnGe TeXt.

InStAlLaTiOn

AdD tHe FoLlOwInG iN yOuR Cargo.toml:

[dependencies.sponge_string]
version = "*"

YoU cAn RePlAcE * wItH tHe VeRsIoN aT tHe ToP oF tHiS rEaDmE.

ExAmPlE

extern crate sponge_string;

use sponge_string::jumble;

fn main() {
    let stdin = std::io::stdin();

    loop {
        let mut line = "".to_owned();

        match stdin.read_line(&mut line) {
            Ok(_) => (),
            Err(e) => {
                println!("The following error has occured: {:?}", e);
                continue
            }
        }

        println!("{}", jumble(&line));
    }
}
Commit count: 5

cargo fmt