From 7bc507d504fd50e0808f5cbd99623ea9116c3c84 Mon Sep 17 00:00:00 2001 From: Vlad2001MFS Date: Mon, 29 Jan 2024 00:06:24 +0300 Subject: [PATCH] feat: impl the `Default` trait --- src/lib.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 683d5a0..e527fba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1471,6 +1471,17 @@ impl Grid { } } +impl Default for Grid { + fn default() -> Self { + Self { + data: Vec::default(), + cols: 0, + rows: 0, + order: Order::default(), + } + } +} + impl Clone for Grid { fn clone(&self) -> Self { Grid {