BorrowFn

Type Alias BorrowFn 

Source
pub type BorrowFn = unsafe fn(this: PtrConst) -> PtrConst;
Expand description

Tries to obtain a reference to the inner value of the pointer.

This can only be used with strong pointers (like alloc::sync::Arc or alloc::rc::Rc).

ยงSafety

this must be a valid strong pointer (like alloc::sync::Arc or alloc::rc::Rc).