generic Align; tui-specific Inset/Outset

This commit is contained in:
🪞👃🪞 2024-09-13 00:09:10 +03:00
parent 4b413cfb60
commit 45ce37baa1
3 changed files with 57 additions and 49 deletions

View file

@ -61,7 +61,8 @@ pub trait Number: Send + Sync + Copy
+ Mul<Self, Output=Self>
+ Div<Self, Output=Self>
+ Ord + PartialEq + Eq
+ Debug + Display + Default {}
+ Debug + Display + Default
+ From<u16> {}
impl<T> Number for T where
T: Send + Sync + Copy
@ -71,4 +72,5 @@ impl<T> Number for T where
+ Div<Self, Output=Self>
+ Ord + PartialEq + Eq
+ Debug + Display + Default
+ From<u16>
{}