Function scope_ref

Source
pub fn scope_ref<Array: TrustedContainer, F, Out>(array: &Array, f: F) -> Out
where F: for<'id> FnOnce(&'id Container<'id, Array>) -> Out,
Expand description

scope, but for a backing container behind a reference (such as an unsized string slice).