#raw-pointers #data #unique #non #basic #type #escaping

no-std aliasable

Basic aliasable (non unique pointer) types

4 releases

0.1.3 Jan 10, 2021
0.1.2 Dec 8, 2020
0.1.1 Dec 8, 2020
0.1.0 Dec 7, 2020

#525 in Data structures

Download history 275483/week @ 2024-07-25 259945/week @ 2024-08-01 275909/week @ 2024-08-08 278167/week @ 2024-08-15 276545/week @ 2024-08-22 254385/week @ 2024-08-29 282776/week @ 2024-09-05 271919/week @ 2024-09-12 279149/week @ 2024-09-19 293627/week @ 2024-09-26 309897/week @ 2024-10-03 289902/week @ 2024-10-10 285762/week @ 2024-10-17 298003/week @ 2024-10-24 263036/week @ 2024-10-31 287327/week @ 2024-11-07

1,198,068 downloads per month
Used in 738 crates (5 directly)

MIT license

25KB
526 lines

Build Status Coverage Status Crate Docs

rust-aliasable

Rust library providing basic aliasable (non core::ptr::Unique) types
Documentation hosted on docs.rs.

aliasable = "0.1"

Why?

Used for escaping noalias when multiple raw pointers may point to the same data.

Goals

aliasable is not designed to provide a full interface for container types, simply to provide aliasable (non core::ptr::Unique) alternatives for dereferencing their owned data. When converting from a unique to an aliasable alternative, no data referenced is mutated (one-to-one internal representation aside from the non core::ptr::Unique pointer).

Usage

use aliasable::vec::AliasableVec;

// Re-exported via `aliasable::vec::UniqueVec`
let unique = Vec::from(&[1, 2, 3][..]);
let aliasable = AliasableVec::from(unique);

Dependencies