【文件属性】:
文件名称:scan_fmt:Rust的类似于scanf()的简单输入
文件大小:11KB
文件格式:ZIP
更新时间:2021-02-23 05:22:19
Rust
scan_fmt
scan_fmt为Rust提供了一个类似于scanf()的简单输入。 目的是使从字符串或stdin读取数据更容易。
当前,格式字符串支持以下特殊序列:
{{ = escape for '{'
}} = escape for '}'
{} = return any value (until next whitespace)
{d} = return base-10 decimal
{x} = return hex (0xab or ab)
{f} = return float
{*d} = "*" as the first character means "match but don't return"
{2d} or {2x} or {2f} = limit the maximum width to 2. Any po
【文件预览】:
scan_fmt-master
----.gitignore(25B)
----src()
--------parse.rs(18KB)
--------lib.rs(10KB)
----.travis.yml(59B)
----LICENSE(1KB)
----Cargo.toml(359B)
----README.md(2KB)