Skip to content

Add from_buf method #56

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

Merged
merged 1 commit into from
Jul 22, 2017
Merged

Add from_buf method #56

merged 1 commit into from
Jul 22, 2017

Conversation

eira-fransham
Copy link
Contributor

@eira-fransham eira-fransham commented Jul 22, 2017

If you have an A on the stack already this allows you to create a SmallVec<A> with zero copying.


This change is Reviewable

@jdm
Copy link
Member

jdm commented Jul 22, 2017

@bors-servo: r+
Makes sense!

@bors-servo
Copy link
Contributor

📌 Commit 534532d has been approved by jdm

@bors-servo
Copy link
Contributor

⌛ Testing commit 534532d with merge ecc9007...

bors-servo pushed a commit that referenced this pull request Jul 22, 2017
Add from_buf method

If you have an `A` on the stack already this allows you to create a `SmallVec<A>` with zero copying.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/56)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: jdm
Pushing ecc9007 to master...

@bors-servo bors-servo merged commit 534532d into servo:master Jul 22, 2017
mbrubeck added a commit to mbrubeck/rust-smallvec that referenced this pull request Aug 10, 2017
* Add `SmallVec::from_buf` constructor (servo#56).
* Add optional `serde` (de-)serialization support (servo#57).
@mbrubeck mbrubeck mentioned this pull request Aug 10, 2017
bors-servo pushed a commit that referenced this pull request Aug 11, 2017
Release version 0.4.2.

* Add `SmallVec::from_buf` constructor (#56).
* Add optional `serde` (de-)serialization support (#57).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/58)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants