Add From impls for Length, Point, and Size
This commit is contained in:
parent
811d8b90d7
commit
62725a76ef
3 changed files with 30 additions and 0 deletions
|
|
@ -27,3 +27,9 @@ impl Length {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<u16> for Length {
|
||||
fn from(units: u16) -> Self {
|
||||
Length::Units(units)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue