take_mut
Rust API reference for the module take_mut.
Public API
Function: take
Canonical path: take_mut::take
Declared in: src/lib.rs
Signature
pub fn take<T, F>(mut_ref: &mut T, closure: F)
where F: FnOnce(T) -> T {}
Function: take_or_recover
Canonical path: take_mut::take_or_recover
Declared in: src/lib.rs
Signature
pub fn take_or_recover<T, F, R>(mut_ref: &mut T, recover: R, closure: F)
where F: FnOnce(T) -> T, R: FnOnce() -> T {}