high_mem_utils-0.2.7 doesn't have any documentation.
This crate provides high-level memory abstractions used for ensure memory and exception safety in some patterns.
It brings safe abstractions for some cases of transmute and others unsafe functions in the mem or ptr module,does not provide a custom allocator or garbage collector neither depends on the [core::alloc
] unstable lib.
Thsi crate brings serde support for some structs with the feature serde_support
enabled.
Version
At the moment this crate is nightly only,this will change if the features vec_leak
, const_fn
,
untagged_unions
and const_fn_union
get stabilished.
Usage
use ;
let mut string = String from;
let catch = new_str;
assert_eq!; // leaked returns &&mut str,not use to_string
// it's a bit difficult cast rigth now
assert_eq!; // catch consumed
let mut a = ;
assert_eq!;
unsafe
assert_eq!;
License
This code is licensed under the Unlicense.