BorrowFn

Type Alias BorrowFn 

Source
pub type BorrowFn = for<'ptr> unsafe fn(this: PtrConst<'ptr>) -> GenericPtr<'ptr>;
Expand description

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

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

ยงSafety

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