better-as 0.1.0

Explicit type casting
Documentation
1
2
3
4
5
6
7
pub fn to_address<T: ?Sized>(p: *const T) -> usize {
    p as *const () as usize
}

pub fn to_address_mut<T: ?Sized>(p: *mut T) -> usize {
    p as *mut () as usize
}