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

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

#527 in Data structures

Download history 273593/week @ 2024-06-11 252031/week @ 2024-06-18 301251/week @ 2024-06-25 258923/week @ 2024-07-02 271231/week @ 2024-07-09 263924/week @ 2024-07-16 272823/week @ 2024-07-23 269983/week @ 2024-07-30 257222/week @ 2024-08-06 277683/week @ 2024-08-13 280949/week @ 2024-08-20 257411/week @ 2024-08-27 283849/week @ 2024-09-03 277252/week @ 2024-09-10 257220/week @ 2024-09-17 300080/week @ 2024-09-24

1,145,059 downloads per month
Used in 719 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