random-world:通过寻找可打印的字符串来学习生锈的示例

时间:2021-03-27 00:32:45
【文件属性】:
文件名称:random-world:通过寻找可打印的字符串来学习生锈的示例
文件大小:15KB
文件格式:ZIP
更新时间:2021-03-27 00:32:45
Rust 随机世界 random-world通过猜测字符串的每个字符直到字符串与“ Random World!”匹配来创建并打印字符串。 除了让我学习之外,该应用程序本身没有任何用处。 由于Rustfearless concurrency猜测字符发生在并行线程中 按照设置防锈 示例输出: $cargo run Found char 'R' at position 0 after 130 iterations! Found char 'a' at position 1 after 72 iterations! Found char 'n' at position 2 after 92 iterations! Found char 'd' at position 3 after 154 iterations! Found char ' ' at position 6 after 22 iterati
【文件预览】:
random-world-main
----.gitignore(328B)
----src()
--------main.rs(2KB)
----LICENSE(34KB)
----Cargo.toml(267B)
----.github()
--------workflows()
----README.md(2KB)

网友评论