Skip to main content

take_perm

Function take_perm 

Source
fn take_perm<T>(prev: Arc<T>, perm_of: impl Fn(&T) -> &SortPerm) -> SortPerm
where SortPerm: From<T>,
Expand description

Reuse the previous permutation’s allocation when the cache slot held the only Arc, clone otherwise (same policy as the other derived caches).