Draft styling example
This commit is contained in:
parent
bbc8f837d7
commit
2bbd395d5d
5 changed files with 298 additions and 6 deletions
|
|
@ -32,6 +32,17 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<T> std::ops::Mul for Vector<T>
|
||||
where
|
||||
T: std::ops::Mul<Output = T>,
|
||||
{
|
||||
type Output = Self;
|
||||
|
||||
fn mul(self, b: Self) -> Self {
|
||||
Self::new(self.x * b.x, self.y * b.y)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Default for Vector<T>
|
||||
where
|
||||
T: Default,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue