unmem

Crates.iounmem
lib.rsunmem
version0.2.6
sourcesrc
created_at2022-06-03 11:54:05.024916
updated_at2022-09-03 11:24:37.479578
descriptionBeware!
homepage
repositoryhttps://github.com/mrMiiao/unmem
max_upload_size
id599240
size14,734
(mrMiiao)

documentation

README

crates.io License Documentation

unmem

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
}
Commit count: 14

cargo fmt