alexcrichton / alexcrichton/debug-cell
feature request, Ref::map, RefMut::map
オープン
- 主要言語
- Rust
- スター
- 24
- フォーク
- 13
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
same feature with std::cell::Ref::map, std::cell::RefMut::map
ex)
```
struct Foo {
bar:i32
}
let cell = RefCell::new(Foo { bar: 1 });
let cell_ref = cell.borrow();
let cell_ref_bar = Ref::map(cell_ref, |v| &v.bar);
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。