Function nu_path::cow_map_by_ref[][src]

pub fn cow_map_by_ref<B: ?Sized, O, F>(c: Cow<'_, B>, f: F) -> Cow<'_, B> where
    B: ToOwned<Owned = O>,
    O: AsRef<B>,
    F: FnOnce(&B) -> &B,