зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1859623: Mention thin-vec crate in Writing Rust Code / Basics. r=firefox-source-docs-reviewers,sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D191223
This commit is contained in:
Родитель
fa6e743810
Коммит
f9befd31ff
|
@ -49,6 +49,8 @@ reflects `nsresult` codes into Rust.
|
|||
exposes bindings for XPCOM string types. You can use the same `ns{A,C}String`
|
||||
types as C++ for owned strings and pass them back and forth over the
|
||||
boundary. There is also `ns{A,C}Str` for dependent or borrowed strings.
|
||||
- [thin-vec](https://docs.rs/thin-vec/latest/thin_vec/) provides a
|
||||
Rust `Vec`-like type that is layout-compatible with Gecko's `nsTArray`.
|
||||
- [xpcom](https://searchfox.org/mozilla-central/source/xpcom/rust/xpcom/src)
|
||||
provides multiple building blocks for a component's implementation.
|
||||
- The `RefPtr` type is for managing reference-counted pointers.
|
||||
|
|
Загрузка…
Ссылка в новой задаче