#pointers #data #unique #non #basic #type #multiple

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

#616 in Data structures

Download history 213539/week @ 2023-12-15 94065/week @ 2023-12-22 154159/week @ 2023-12-29 225967/week @ 2024-01-05 198258/week @ 2024-01-12 185572/week @ 2024-01-19 164810/week @ 2024-01-26 175050/week @ 2024-02-02 183764/week @ 2024-02-09 159259/week @ 2024-02-16 193702/week @ 2024-02-23 184454/week @ 2024-03-01 177503/week @ 2024-03-08 181794/week @ 2024-03-15 173175/week @ 2024-03-22 160735/week @ 2024-03-29

724,465 downloads per month
Used in 663 crates (3 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