commit | c467875f1ccaba61c9b66e383aceca1177a23536 | [log] [tgz] |
---|---|---|
author | Maurice Lam <[email protected]> | Thu Feb 09 22:08:44 2023 +0000 |
committer | Maurice Lam <[email protected]> | Wed Feb 15 19:48:25 2023 +0000 |
tree | 86a374b700f0981ddb96d78941ec099b6f907f6c | |
parent | 6c71cc3835a332225f80cd000480b93488908d53 [diff] |
Run cargo2android on aliasable Bug: 267375624 Test: m libaliasable.rlib-std Change-Id: I8cdfc521e9d766264e72b23c40ac159897d210a7
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);