changeset 15850 | 44b49f255e31 |
parent 15781 | c929e25a7da2 |
15849:64b0a5cead86 | 15850:44b49f255e31 |
---|---|
12 } |
12 } |
13 |
13 |
14 impl Fit { |
14 impl Fit { |
15 fn new() -> Self { |
15 fn new() -> Self { |
16 Self { |
16 Self { |
17 short_side: u32::max_value(), |
17 short_side: u32::MAX, |
18 long_side: u32::max_value(), |
18 long_side: u32::MAX, |
19 } |
19 } |
20 } |
20 } |
21 |
21 |
22 fn measure(container: Size, size: Size) -> Option<Self> { |
22 fn measure(container: Size, size: Size) -> Option<Self> { |
23 if container.contains(size) { |
23 if container.contains(size) { |