Skip to content

0.8.7

Compare
Choose a tag to compare
@maciejhirsz maciejhirsz released this 07 Jul 21:27
· 147 commits to master since this release

This is a patch release that includes two new utilities:

  • @imp implemented DoubleEndedIterator for all iterator types, so iterating over array entries or object members is now more powerful, and more closely maps to what is possible with regular vectors and maps.

  • You can now .take() owned values out of a structure leaving a null in place, useful for avoiding cloning all over the place:

    let mut data = array!["Foo", 42];
    
    let first = data[0].take();
    let second = data[1].take();
    
    assert!(first == "Foo");
    assert!(second == 42);
    
    assert!(data[0].is_null());
    assert!(data[1].is_null());