Crates.io | unmem |
lib.rs | unmem |
version | 0.2.6 |
source | src |
created_at | 2022-06-03 11:54:05.024916 |
updated_at | 2022-09-03 11:24:37.479578 |
description | Beware! |
homepage | |
repository | https://github.com/mrMiiao/unmem |
max_upload_size | |
id | 599240 |
size | 14,734 |
Some memory working stuff.
Examples:
extern crate unmem;
use unmem::change;
fn main() {
let a: u8 = 6;
change(&a, 255);
println!("{a}"); // >> 255
}
extern crate unmem;
use unmem::get_mut;
fn main() {
let a: u8 = 15;
let mut mut_a = get_mut(&a);
*mut_a = 8;
println!("{a}"); // >> 8
}