Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove extra semicolonnext | Brian Cully | 2022-10-12 | 1 | -1/+1 |
| | |||||
* | update repo url | Brian Cully | 2022-10-12 | 1 | -1/+1 |
| | |||||
* | Fix clippy lints. | Brian Cully | 2019-09-09 | 1 | -3/+2 |
| | |||||
* | Remove calls to mem::transumte. | Brian Cully | 2019-09-09 | 1 | -41/+23 |
| | | | | | | I was under the mistaken impression that mutable `AtomicUsize` was needed, when it's not. Simplify all code to use normal borrows instead of pointers with transmute. | ||||
* | Remove `Sync` marker for Reader/Writer.v0.3.0 | Brian Cully | 2019-09-02 | 3 | -4/+8 |
| | | | | | | | | These are not sync, as they can only be used from one thread at a time. Also add a `Send` trait for `RingBuffer`, as long as its element type is also `Send`. | ||||
* | Ignore target directory. | Brian Cully | 2019-08-15 | 1 | -1/+1 |
| | |||||
* | Fix travis-ci badge. | Brian Cully | 2019-08-14 | 1 | -1/+1 |
| | |||||
* | Finish documentation sentence for `unshift_from`. | Brian Cully | 2019-08-14 | 1 | -1/+1 |
| | |||||
* | Version bump to 0.2.v0.2.0 | Brian Cully | 2019-08-14 | 1 | -1/+1 |
| | |||||
* | Add changelog. | Brian Cully | 2019-08-14 | 1 | -0/+8 |
| | |||||
* | Add badges to README. | Brian Cully | 2019-08-14 | 1 | -2/+6 |
| | |||||
* | Remove un-needed feature gate. | Brian Cully | 2019-08-14 | 2 | -7/+8 |
| | | | | This should work on stable now. | ||||
* | Use rust nightly. | Brian Cully | 2019-08-14 | 1 | -0/+2 |
| | |||||
* | Add travis CI stuff. | Brian Cully | 2019-08-14 | 1 | -0/+1 |
| | |||||
* | Relax ordering and use fences where necessary. | Brian Cully | 2019-08-14 | 1 | -15/+29 |
| | |||||
* | Remove `Copy` requirement for most methods. | Brian Cully | 2019-08-14 | 1 | -23/+54 |
| | | | | | | | | | The ring buffer will now take and pass ownership as required, so the `Copy` trait constraint is no longer required. The one exception is `Writer::unshift_from`, where we're taking data we don't know how to replace from an arbitrary slice, so that needs to be `Copy`-able. | ||||
* | API Change: Don't require default value for RingBuffer::new(). | Brian Cully | 2019-08-14 | 1 | -22/+31 |
| | | | | | | | | Use mem::MaybeUninit as the backing store so initialization is no longer required in `new`. This is safe, because you can't read anything out of the ring buffer until you store something, which initializes the memory. | ||||
* | Add Writer::unshift_from for batch copying data in. | Brian Cully | 2019-08-13 | 1 | -0/+52 |
| | | | | | This is just the inverse of Reader::shift and exists for the same reasons. | ||||
* | Add Reader::shift_into function for batch copying. | Brian Cully | 2019-08-13 | 1 | -3/+67 |
| | | | | | | This function can be used if you need to quickly copy a bunch of things from the buffer, as it only does its safety checks once, rather than on every item extraction. | ||||
* | Version bump to 0.1.1.v0.1.1 | Brian Cully | 2019-08-13 | 1 | -1/+1 |
| | | | | | | * Add more documentation. * Add `Iterator` implementation. * Optimize indexing by using unchecked variants. | ||||
* | Documentation. | Brian Cully | 2019-08-13 | 1 | -0/+19 |
| | |||||
* | Add iterator implementation. | Brian Cully | 2019-08-13 | 1 | -4/+28 |
| | |||||
* | Use get_unchecked for backing array access. | Brian Cully | 2019-08-13 | 1 | -4/+8 |
| | | | | | The index is guaranteed to be in bounds because it's always modulo the array capacity, so use the unchecked variants to get/set values. | ||||
* | Initial commit.v0.1.0 | Brian Cully | 2019-08-04 | 6 | -0/+1076 |