aboutsummaryrefslogtreecommitdiff
path: root/src/bt.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2019-12-08 12:23:28 +0100
committerDaniel Schadt <kingdread@gmx.de>2019-12-08 12:23:28 +0100
commit3f24517793c59a61dbbb1513124eb177201c15ba (patch)
tree9da92ef8898104d8cc2abbbc0a3b449992845ab6 /src/bt.rs
parentd452c64894d5067277a8842bbf0c8c9365f6b137 (diff)
downloadkondou-3f24517793c59a61dbbb1513124eb177201c15ba.tar.gz
kondou-3f24517793c59a61dbbb1513124eb177201c15ba.tar.bz2
kondou-3f24517793c59a61dbbb1513124eb177201c15ba.zip
add console output for build templates
Diffstat (limited to 'src/bt.rs')
-rw-r--r--src/bt.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bt.rs b/src/bt.rs
index f3e2090..293e3d4 100644
--- a/src/bt.rs
+++ b/src/bt.rs
@@ -86,6 +86,18 @@ impl FromStr for TraitChoice {
}
}
+impl fmt::Display for TraitChoice {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ let result = match *self {
+ TraitChoice::None => "none",
+ TraitChoice::Top => "top",
+ TraitChoice::Middle => "mid",
+ TraitChoice::Bottom => "bot",
+ };
+ write!(f, "{}", result)
+ }
+}
+
/// Represents a revenenant legend.
#[repr(u8)]
#[derive(Debug, PartialEq, Eq, Hash, Copy, Clone, IntoPrimitive, TryFromPrimitive)]