没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
塞尔德 YAML这个箱子是一个 Rust 库,用于将Serde序列化框架与YAML文件格式的数据一起使用。这个库没有重新实现 YAML 解析器;它使用yaml-rust ,这是一个纯 Rust YAML 1.2 实现。依赖[dependencies ]serde =" 1.0"serde_yaml =" 0.8"发行说明可在GitHub 发行版下找到。使用 Serde YAMLAPI 文档以 rustdoc 形式提供,但总体思路是:use std:: collections:: BTreeMap;fnmain () ->Result <(), serde_yaml::Error> {// You have some type.letmut map= BTreeMap::new (); map.insert ("x" .to_string (),1.0 ); map.insert ("y" .to_string (),2.0 );// Serialize it to a YAML string.let s= serde_yaml::to_string (& map
资源推荐
资源详情
资源评论
收起资源包目录
dtolnay-serde-yaml-.zip (28个子文件)
serde-yaml-master
.gitignore 18B
src
ser.rs 22KB
error.rs 8KB
mapping.rs 7KB
value
index.rs 9KB
ser.rs 822B
mod.rs 19KB
de.rs 18KB
partial_eq.rs 4KB
from.rs 4KB
path.rs 1KB
number.rs 13KB
de.rs 45KB
lib.rs 4KB
fuzz
.gitignore 27B
fuzz_targets
fuzz_from_slice.rs 142B
Cargo.toml 332B
Cargo.toml 626B
.github
workflows
ci.yml 1KB
LICENSE-MIT 1023B
README.md 4KB
tests
test_error.rs 6KB
test_value.rs 2KB
test_visitor.rs 2KB
test_serde.rs 7KB
test_de.rs 9KB
.clippy.toml 16B
LICENSE-APACHE 11KB
共 28 条
- 1
资源评论
weixin_38699593
- 粉丝: 6
- 资源: 914
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功