raw_pointer

Crates.ioraw_pointer
lib.rsraw_pointer
version0.1.4
sourcesrc
created_at2021-05-25 00:08:16.631329
updated_at2021-06-10 14:48:41.172277
descriptionSafely handling raw mutable pointers to a generic type
homepage
repositoryhttps://github.com/JIceberg/raw-pointer
max_upload_size
id401617
size4,882
Jackson Isenberg (JIceberg)

documentation

README

raw-pointer

Allows for safely handling raw, mutable pointers to a generic type in Rust.

Usage

Pointer to Data

let mut val: u32 = 6;
let mut ptr_val = Pointer::<u32>::new(&mut val);

*ptr_val = 9;

Pointer to Specific Address

let mut temp_tegister: Pointer<MyRegister> = Pointer::<MyRegister>::from(0xFFFF0000);

test_and_set(temp_register.value);
Commit count: 17

cargo fmt