yoga 0.5.0

Rust bindings for Facebook's Yoga, a Flexbox layout engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate yoga;

use yoga::Node;

#[test]
fn test_node_drop_order() {
    let mut children = Vec::new();
    let mut root = Node::new();

    for _ in 0..1000 {
        let mut c = Node::new();
        root.insert_child(&mut c, 0);
        children.push(c);
    }
}