Skip to content

Commit 34b6bdd

Browse files
authoredAug 15, 2021
Release v0.1.0 (#5)
1 parent ae941fc commit 34b6bdd

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
 

‎Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
name = "small_vec"
33
version = "0.1.0"
44
edition = "2018"
5+
authors = ["Jorge Rinaldi <jrg.rinaldi@gmail.com>"]
6+
license = "MIT"
7+
repository = "https://github.com/m-rinaldi/small_vec/"
8+
description = "vector optimized for small buffers"
9+
510

611
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
712

‎README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# small_vec
2+
3+
A *dynamic array* or vector supporting *small buffer optimization*.
4+
5+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6+
[![Build Status](https://travis-ci.com/m-rinaldi/small_vec.svg?branch=main)](https://travis-ci.com/m-rinaldi/small_vec)
7+
8+
---
9+
10+
`SmallVec<T, N>` is, in essence, just an `enum` with two variants:
11+
12+
- `Local`: a buffer allocated locally inside the `SmallVec` itself.
13+
- `Remote`: a `Vec<T>`, i.e., a remote buffer allocated on the heap.
14+
15+
16+
The capacity of the local buffer is specified at compile time as a constant generic argument to `SmallVec`.
17+
18+
19+

0 commit comments

Comments
 (0)