Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,3 @@
trait Shape {
fn area(self) -> i32;
}

View file

@ -0,0 +1,9 @@
struct Square {
side_length: i32
}
impl Shape for Square {
fn area(self) -> i32 {
self.side_length * self.side_length
}
}

View file

@ -0,0 +1,7 @@
trait Shape {
fn area(self) -> i32;
fn is_shape(self) -> bool {
true
}
}