kutil 0.0.6

Kutil utilities collection
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Defer execution to the end of the scope.
#[macro_export]
macro_rules! defer {
    ( $($code:tt)* ) => (
        let _deferred_fn_once = $crate::std::scope::DeferredFnOnce::new(
            || -> () { $($code)* }
        );
    )
}

#[allow(unused_imports)]
pub use defer;