Type Alias TryBorrowInnerFnTyped

Source
pub type TryBorrowInnerFnTyped<T> = for<'src> fn(&'src T) -> Result<&'src T, 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.