Rename Rect field start->left end->right (#257)
1pub fn compute() {
2 let mut taffy = taffy::Taffy::new();
3 let node0 = taffy
4 .new_with_children(
5 taffy::style::Style {
6 flex_grow: 1f32,
7 margin: taffy::geometry::Rect {
8 left: taffy::style::Dimension::Points(10f32),
9 right: taffy::style::Dimension::Points(10f32),
10 ..Default::default()
11 },
12 ..Default::default()
13 },
14 &[],
15 )
16 .unwrap();
17 let node = taffy
18 .new_with_children(
19 taffy::style::Style {
20 flex_direction: taffy::style::FlexDirection::Column,
21 size: taffy::geometry::Size {
22 width: taffy::style::Dimension::Points(100f32),
23 height: taffy::style::Dimension::Points(100f32),
24 ..Default::default()
25 },
26 ..Default::default()
27 },
28 &[node0],
29 )
30 .unwrap();
31 taffy.compute_layout(node, taffy::geometry::Size::MAX_CONTENT).unwrap();
32}