add Time*i64
This commit is contained in:
parent
5790863111
commit
43e1f8a173
@ -118,11 +118,17 @@ impl std::ops::Mul for Time{
|
|||||||
impl std::ops::Div<i64> for Time{
|
impl std::ops::Div<i64> for Time{
|
||||||
type Output=Time;
|
type Output=Time;
|
||||||
#[inline]
|
#[inline]
|
||||||
fn div(self,rhs:i64)->Self::Output {
|
fn div(self,rhs:i64)->Self::Output{
|
||||||
Time(self.0/rhs)
|
Time(self.0/rhs)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
impl std::ops::Mul<i64> for Time{
|
||||||
|
type Output=Time;
|
||||||
|
#[inline]
|
||||||
|
fn mul(self,rhs:i64)->Self::Output{
|
||||||
|
Time(self.0*rhs)
|
||||||
|
}
|
||||||
|
}
|
||||||
impl core::ops::Mul<Time> for Planar64{
|
impl core::ops::Mul<Time> for Planar64{
|
||||||
type Output=Ratio<Fixed<2,64>,Planar64>;
|
type Output=Ratio<Fixed<2,64>,Planar64>;
|
||||||
fn mul(self,rhs:Time)->Self::Output{
|
fn mul(self,rhs:Time)->Self::Output{
|
||||||
|
Loading…
Reference in New Issue
Block a user