Checkpoint

This commit is contained in:
Nathan Sobo
2023-09-11 12:58:55 -06:00
parent 0c2bc6e553
commit 3ba8857491
6 changed files with 120 additions and 5 deletions
+9
View File
@@ -167,6 +167,15 @@ pub struct Size<T: Clone + Default + Debug> {
pub height: T,
}
impl Size<Length> {
pub fn full() -> Self {
Self {
width: relative(1.),
height: relative(1.),
}
}
}
impl<S, T: Clone + Default + Debug> From<taffy::geometry::Size<S>> for Size<T>
where
S: Into<T>,