Skip to content

Commit f9befd3

Browse files
committed
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
1 parent fa6e743 commit f9befd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/writing-rust-code/basics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ reflects `nsresult` codes into Rust.
4949
exposes bindings for XPCOM string types. You can use the same `ns{A,C}String`
5050
types as C++ for owned strings and pass them back and forth over the
5151
boundary. There is also `ns{A,C}Str` for dependent or borrowed strings.
52+
- [thin-vec](https://docs.rs/thin-vec/latest/thin_vec/) provides a
53+
Rust `Vec`-like type that is layout-compatible with Gecko's `nsTArray`.
5254
- [xpcom](https://searchfox.org/mozilla-central/source/xpcom/rust/xpcom/src)
5355
provides multiple building blocks for a component's implementation.
5456
- The `RefPtr` type is for managing reference-counted pointers.

0 commit comments

Comments
 (0)