sugar 0.2.0

Rust syntax sugar collections.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub use maplit::*;
pub use cute::*;
pub use vec_box::*;

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        let v = vec![1, 2, 3];
        let map = hashmap!(
            1 => "1".to_owned(),
            2 => "2".to_owned(),
            3 => "3".to_owned(),
        );

        assert_eq!(map, c![i => i.to_string(), for i in v])
    }
}