#lang #language #noalias

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

#567 in Data structures

Download history 68756/week @ 2022-12-01 63367/week @ 2022-12-08 64198/week @ 2022-12-15 47656/week @ 2022-12-22 52572/week @ 2022-12-29 72557/week @ 2023-01-05 66065/week @ 2023-01-12 66186/week @ 2023-01-19 73436/week @ 2023-01-26 65989/week @ 2023-02-02 71807/week @ 2023-02-09 71600/week @ 2023-02-16 74015/week @ 2023-02-23 64914/week @ 2023-03-02 75401/week @ 2023-03-09 80051/week @ 2023-03-16

307,074 downloads per month
Used in 401 crates (5 directly)

MIT license

24KB
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