rust-aliasable
Rust library providing basic aliasable (non core::ptr::Unique
) types
Documentation hosted on docs.rs.
= "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 AliasableVec;
// Re-exported via `aliasable::vec::UniqueVec`
let unique = Vec from;
let aliasable = from;