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

Add from_buf method #56

Merged
merged 1 commit into from Jul 22, 2017
Merged

Add from_buf method #56

merged 1 commit into from Jul 22, 2017

Conversation

@Vurich
Copy link
Contributor

Vurich 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

Vurich
@jdm
Copy link
Member

jdm commented Jul 22, 2017

@bors-servo: r+
Makes sense!

@bors-servo
Copy link
Contributor

bors-servo commented Jul 22, 2017

📌 Commit 534532d has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jul 22, 2017

Testing commit 534532d with merge ecc9007...

bors-servo added 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

bors-servo commented Jul 22, 2017

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

@bors-servo bors-servo merged commit 534532d into servo:master Jul 22, 2017
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
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 added 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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.