Import aliasable crate

Bug: 267375624
Test: None, this CL doesn't add any build files yet
Change-Id: I04115d35c7bf19abba9f76bb177a3e2d19069b94
14 files changed
tree: ad37f0ccb6bc1e2e0d6ca1b305974b6b6a4914b6
  1. src/
  2. .cargo_vcs_info.json
  3. Cargo.toml
  4. Cargo.toml.orig
  5. CHANGELOG.md
  6. LICENSE
  7. METADATA
  8. MODULE_LICENSE_MIT
  9. OWNERS
  10. README.md
README.md

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);