fn from_ptr<'a, T: 'a, U, F: FnOnce(&'a T) -> U>(p: usize, f: F) -> std::option::Option<U> {
    match p {
        0 => None,
        _ => Some(f(unsafe { &*(p as *const T) })),
    }
}
// Utility for raw pointer conversions.
Utility for raw pointer conversions.
Utility for raw pointer conversions .
fn from_ptr<'a, T: 'a, U, F: FnOnce(&'a T) -> U>(p: usize, f: F) -> std::option::Option<U> {
    match p {
        0 => None,
        _ => Some(f(unsafe { &*(p as *const T) })),
    }
}
fn from_ptr < ' a , T : ' a , U , F : FnOnce ( & ' a T ) -> U > ( p : usize , f : F ) -> std :: option :: Option < U > { match p { 0 => None , _ => Some ( f ( unsafe { & * ( p as * const T ) } ) ) , } }
Utility for raw pointer conversions.
Utility for raw pointer conversions .
p
usize
f
F
p
usize
f
F