| Crates.io | aliasable |
| lib.rs | aliasable |
| version | 0.1.3 |
| created_at | 2020-12-07 03:08:24.21249+00 |
| updated_at | 2021-01-10 04:20:00.538145+00 |
| description | Basic aliasable (non unique pointer) types |
| homepage | https://github.com/avitex/rust-aliasable |
| repository | https://github.com/avitex/rust-aliasable |
| max_upload_size | |
| id | 320355 |
| size | 25,591 |
Rust library providing basic aliasable (non core::ptr::Unique) types
Documentation hosted on docs.rs.
aliasable = "0.1"
Used for escaping noalias when multiple raw pointers may point to the same
data.
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).
use aliasable::vec::AliasableVec;
// Re-exported via `aliasable::vec::UniqueVec`
let unique = Vec::from(&[1, 2, 3][..]);
let aliasable = AliasableVec::from(unique);