ignite 0.1.6

ignite serves the role as a "batteries included" addon to stdlib providing useful stuff and higher level functions along with abstractions.
Documentation
1
2
3
4
5
6
7
8
/// Swap two variables. But instead of using references, they will be consumed
/// and new bindings will be produced.
#[inline]
pub fn swap<T>(x: T, y: T) -> (T, T) {
    let (y, x) = (x, y);

    (y, x)
}