Function git_features::threading::map_ref[][src]

pub fn map_ref<T, U: ?Sized>(
    v: RefGuard<'_, T>,
    f: impl FnOnce(&T) -> &U
) -> MappedRefGuard<'_, U>
Expand description

Map a read guard into a sub-type it contains.