2 个版本

0.1.1 2019年6月9日
0.1.0 2019年6月9日

#3 in #spongebob

MIT 许可证

3KB

Crates.io

sponge_string_rs

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

安装

在您的 Cargo.toml 中添加以下内容

[dependencies.sponge_string]
version = "*"

您可以用本README顶部的版本替换 *

示例

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));
    }
}

无运行时依赖