Complexifying our hello world

This commit is contained in:
Nicolas Patry
2023-07-27 16:35:40 +02:00
parent 5bc5716b85
commit ad9d8fe400
2 changed files with 146 additions and 1 deletions

View File

@ -41,6 +41,12 @@ impl From<usize> for Shape {
}
}
impl From<(usize,)> for Shape {
fn from(d1: (usize,)) -> Self {
Self(vec![d1.0])
}
}
impl From<(usize, usize)> for Shape {
fn from(d12: (usize, usize)) -> Self {
Self(vec![d12.0, d12.1])