arae 0.2.0

Cursed data structures
Documentation
  • Coverage
  • 100%
    35 out of 35 items documented10 out of 30 items with examples
  • Size
  • Source code size: 49.79 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 5.17 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • avitex/rust-arae
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • avitex

Build Status Crate Docs

rust-arae

Cursed data structures
Documentation hosted on docs.rs.

arae = "0.2.0"

Example

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.head();
let read_cursor = vec.head();

*vec.get_mut(write_cursor) = 1;

assert_eq!(*vec.get(read_cursor), 1);