Searched refs:new_with_data (Results 1 – 2 of 2) sorted by relevance
182 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data() method198 ScopeGuard::new_with_data((), move |_| cleanup()) in new()
1025 let mut init_count = ScopeGuard::new_with_data(0, |i| {1069 let mut init_count = ScopeGuard::new_with_data(0, |i| {