commonlib 0.1.2

a common library for xiu project.
Documentation
1
2
3
4
5
6
7
#[macro_export]
macro_rules! scanf {
    ( $string:expr, $sep:expr, $( $x:ty ),+ ) => {{
        let mut iter = $string.split($sep);
        ($(iter.next().and_then(|word| word.parse::<$x>().ok()),)*)
    }}
}