commit | fd5203136687de128491a82af7ca3dd99c633371 | [log] [tgz] |
---|---|---|
author | Bob Badour <[email protected]> | Thu Feb 23 06:24:22 2023 -0800 |
committer | Bob Badour <[email protected]> | Thu Feb 23 06:24:22 2023 -0800 |
tree | e2e51714cc0d09417f239f4c24378563b529c569 | |
parent | c467875f1ccaba61c9b66e383aceca1177a23536 [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/aliasable Added SPDX-license-identifier-MIT to: Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Change-Id: Id8cef088f4f4cca9f3755e7793d2d3c64063ec4d
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);