aboutsummaryrefslogtreecommitdiff
path: root/aero-collections/src/davdag.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-04-24 17:35:00 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-04-24 17:35:00 +0200
commite1d7cf88afd9baab67d53823e95cb1b7f240802f (patch)
treee7ececccad85817d3f11700cf5cac4daf33d99e0 /aero-collections/src/davdag.rs
parent52d767edae38cc0d3effd216152ff2dcf6d19239 (diff)
downloadaerogramme-e1d7cf88afd9baab67d53823e95cb1b7f240802f.tar.gz
aerogramme-e1d7cf88afd9baab67d53823e95cb1b7f240802f.zip
Working ICS GET/PUT/DELETE
Diffstat (limited to 'aero-collections/src/davdag.rs')
-rw-r--r--aero-collections/src/davdag.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/aero-collections/src/davdag.rs b/aero-collections/src/davdag.rs
index 3aaebb8..7335bdc 100644
--- a/aero-collections/src/davdag.rs
+++ b/aero-collections/src/davdag.rs
@@ -202,6 +202,16 @@ impl DavDag {
}
}
+impl std::fmt::Debug for DavDag {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ f.write_str("DavDag\n")?;
+ for elem in self.table.iter() {
+ f.write_fmt(format_args!("\t{:?} => {:?}", elem.0, elem.1))?;
+ }
+ Ok(())
+ }
+}
+
impl BayouState for DavDag {
type Op = DavDagOp;