fn simple_raw_pointers() {
    let mut num = 5;

    let r1: *const i32 = &num as *const i32;
    let r2: *mut i32 = &mut num as *mut i32;

    println!("r1: {:?}", r1);
    println!("r2: {:?}", r2);

    let address = 0x012345usize;
    let r3: *const i32 = address as *const i32;
    println!("r3: {:?}", r3);
}
// We can create raw pointers in safe code.
We can create raw pointers in safe code.
We can create raw pointers in safe code .
fn simple_raw_pointers() {
    let mut num = 5;
    let r1: *const i32 = &num as *const i32;
    let r2: *mut i32 = &mut num as *mut i32;
    println!("r1: {:?}", r1);
    println!("r2: {:?}", r2);
    let address = 0x012345usize;
    let r3: *const i32 = address as *const i32;
    println!("r3: {:?}", r3);
}
fn simple_raw_pointers ( ) { let mut num = 5 ; let r1 : * const i32 = & num as * const i32 ; let r2 : * mut i32 = & mut num as * mut i32 ; println ! ( " " r1 ) ; println ! ( " " r2 ) ; let address = 0x012345usize ; let r3 : * const i32 = address as * const i32 ; println ! ( " " r3 ) ; }
We can create raw pointers in safe code.
We can create raw pointers in safe code .