From 0f6d53582e88be6a6f04f363aa064161ad84bb3f Mon Sep 17 00:00:00 2001 From: itiB Date: Sat, 31 Oct 2020 20:51:28 +0900 Subject: [PATCH] Add: Message.print() --- src/detections/print.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/detections/print.rs b/src/detections/print.rs index c91adb26..d83480f3 100644 --- a/src/detections/print.rs +++ b/src/detections/print.rs @@ -39,6 +39,11 @@ impl Message { .get(message_num) .unwrap_or(self.map.get("undefined").unwrap()) } + + /// MessageMaoのなかに入っているメッセージすべてを表示する + pub fn print(&self) { + println!("{:?}", self.map); + } } /// メッセージテキストを言語設定に合わせて返す