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