mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 20:56:43 +01:00
implement fixed Split
This commit is contained in:
parent
e555074bdf
commit
cd0b8a6812
4 changed files with 50 additions and 15 deletions
|
|
@ -62,7 +62,8 @@ pub trait Number: Send + Sync + Copy
|
|||
+ Div<Self, Output=Self>
|
||||
+ Ord + PartialEq + Eq
|
||||
+ Debug + Display + Default
|
||||
+ From<u16>
|
||||
+ From<u16> + Into<u16>
|
||||
+ Into<f64>
|
||||
{
|
||||
fn minus (self, other: Self) -> Self {
|
||||
if self >= other {
|
||||
|
|
@ -81,5 +82,6 @@ impl<T> Number for T where
|
|||
+ Div<Self, Output=Self>
|
||||
+ Ord + PartialEq + Eq
|
||||
+ Debug + Display + Default
|
||||
+ From<u16>
|
||||
+ From<u16> + Into<u16>
|
||||
+ Into<f64>
|
||||
{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue