⎇ b91874d4e34ecc9054b468a338ffcae6f61a1b4a
benches/generated/align_flex_start_with_stretching_children.rs
Historia
Quién tocó qué
crudo
1pub fn compute() {
2 #[allow(unused_imports)]
3 use taffy::prelude::*;
4 let mut taffy = taffy::Taffy::new();
5 let node000 =
6 taffy.new_leaf(taffy::style::Style { flex_grow: 1f32, flex_shrink: 1f32, ..Default::default() }).unwrap();
7 let node00 = taffy
8 .new_with_children(taffy::style::Style { flex_grow: 1f32, flex_shrink: 1f32, ..Default::default() }, &[node000])
9 .unwrap();
10 let node0 = taffy.new_with_children(taffy::style::Style { ..Default::default() }, &[node00]).unwrap();
11 let node = taffy
12 .new_with_children(
13 taffy::style::Style {
14 size: taffy::geometry::Size {
15 width: taffy::style::Dimension::Points(500f32),
16 height: taffy::style::Dimension::Points(500f32),
17 },
18 ..Default::default()
19 },
20 &[node0],
21 )
22 .unwrap();
23 taffy.compute_layout(node, taffy::geometry::Size::MAX_CONTENT).unwrap();
24}