[][src]Function through::through

pub fn through<T>(
    elem: &mut T,
    func: impl FnOnce(T) -> T
)

Mutate a referenced element by transferring ownership through a function.