gix_features::threading

Function map_ref

Source
pub fn map_ref<T, U: ?Sized>(
    v: RefGuard<'_, T>,
    f: impl FnOnce(&T) -> &U,
) -> MappedRefGuard<'_, U>
Available on crate feature parallel only.
Expand description

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