Skip to content

Commit c521d88

Browse files
Vlad2001MFSbecheran
authored andcommitted
feat: impl the Default trait
1 parent 0232305 commit c521d88

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: src/lib.rs

+11
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,17 @@ impl<T> Grid<T> {
14711471
}
14721472
}
14731473

1474+
impl<T> Default for Grid<T> {
1475+
fn default() -> Self {
1476+
Self {
1477+
data: Vec::default(),
1478+
cols: 0,
1479+
rows: 0,
1480+
order: Order::default(),
1481+
}
1482+
}
1483+
}
1484+
14741485
impl<T: Clone> Clone for Grid<T> {
14751486
fn clone(&self) -> Self {
14761487
Grid {

0 commit comments

Comments
 (0)