This commit is contained in:
Nathan Sobo 2023-08-10 09:24:16 -06:00
parent 3b1e5e966a
commit dd6425e898
5 changed files with 56 additions and 19 deletions

View file

@ -657,6 +657,15 @@ impl Size<Rems> {
}
}
impl From<Length> for Size<Length> {
fn from(value: Length) -> Self {
Self {
width: value,
height: value,
}
}
}
#[derive(Clone, Default, Debug)]
pub struct Edges<T> {
top: T,