pub type TryBorrowInnerFn = for<'src> unsafe fn(src_ptr: PtrConst<'src>) -> Result<PtrConst<'src>, TryBorrowInnerError>;Expand description
Function to borrow the inner value from a transparent/newtype wrapper without copying.
This is used for types that wrap another type (like smart pointers, newtypes, etc.) to efficiently access the inner value without transferring ownership.
ยงSafety
This function is unsafe because it operates on raw pointers.
The src_ptr must point to a valid, initialized instance of the wrapper type.
The returned pointer points to memory owned by the wrapper and remains valid
as long as the wrapper is valid and not mutated.