Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avitex/rust-arae
Cursed data structures
https://github.com/avitex/rust-arae
cursor no-std ring-buffer rust-lang
Last synced: 4 days ago
JSON representation
Cursed data structures
- Host: GitHub
- URL: https://github.com/avitex/rust-arae
- Owner: avitex
- License: mit
- Created: 2020-03-06T00:25:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T21:25:08.000Z (over 3 years ago)
- Last Synced: 2024-11-17T02:51:26.603Z (about 1 month ago)
- Topics: cursor, no-std, ring-buffer, rust-lang
- Language: Rust
- Homepage:
- Size: 233 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![Project Status](https://img.shields.io/badge/status-experimental-red)
[![Build Status](https://travis-ci.com/avitex/rust-arae.svg?branch=master)](https://travis-ci.com/avitex/rust-arae)
[![Crate](https://img.shields.io/crates/v/arae.svg)](https://crates.io/crates/arae)
[![Docs](https://docs.rs/arae/badge.svg)](https://docs.rs/arae)# rust-arae
**Cursed data structures**
Documentation hosted on [docs.rs](https://docs.rs/arae).## Experimental
> **Until otherwise noted, this library is experimental. Unsound issues should be assumed until fixed and verified**
```toml
[dependencies]
arae = "0.2.0"
```## Example
```rust
use arae::{CurVec, CursedExt, Bounded};// Create a new `CurVec` of length 10 with the elements
// initialized via `Default::default`.
let mut vec = CurVec::new_with_default(10);// Create two cursors pointing the the head of the vec.
let write_cursor = vec.hptr();
let read_cursor = vec.hptr();*vec.get_mut(write_cursor) = 1;
assert_eq!(*vec.get(read_cursor), 1);
```