diff options
Diffstat (limited to 'core/src/length.rs')
-rw-r--r-- | core/src/length.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/length.rs b/core/src/length.rs index 63ba6207..10873e89 100644 --- a/core/src/length.rs +++ b/core/src/length.rs @@ -27,3 +27,9 @@ impl Length { } } } + +impl From<u16> for Length { + fn from(units: u16) -> Self { + Length::Units(units) + } +} |