Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Book section: Collections #8

Closed
japaric opened this issue Aug 10, 2018 · 3 comments
Closed

Book section: Collections #8

japaric opened this issue Aug 10, 2018 · 3 comments
Assignees
Milestone

Comments

@japaric
Copy link
Member

japaric commented Aug 10, 2018

From @japaric on July 17, 2018 14:37

In this section we cover how to get data structures like std::Vec and std::String working in #[no_std] applications. There are two ways: (a) using the alloc crate, #[global_allocator] and #[alloc_error] -- heap allocated collections -- and (b) using the heapless crate -- fixed capacity collections. There should be a subsection that covers the advantages and disadvantages of using one or the other.

Copied from original issue: rust-embedded/wg#125

@japaric
Copy link
Member Author

japaric commented Aug 21, 2018

Triage: I have a braindump about this sitting on my disk; I'll put up a PR this week to get your opinions on it.

@japaric
Copy link
Member Author

japaric commented Sep 9, 2018

Triage: a draft for this section (renamed to collections) has landed. What's left to be done here is decide if we want to add more content to this section.

I think it may make sense to talk about &'static mut T, which is the no-allocator version of Box<T>, in this section. Both are pointer sized (thus cheap to move around) and own the value behind the pointer (&'static mut has move semantics).

@japaric
Copy link
Member Author

japaric commented Nov 6, 2018

We will land additional content (e.g. &'static mut T) in the unsorted section and later on decide whether to merge it with collections or put in a separate section. Closing this issue as done.

@japaric japaric closed this as completed Nov 6, 2018
@jamesmunns jamesmunns changed the title Book section: Dynamic data structures (draft) Book section: Collections Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants