diff options
author | Daniel Schadt <kingdread@gmx.de> | 2019-12-08 12:23:28 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2019-12-08 12:23:28 +0100 |
commit | 3f24517793c59a61dbbb1513124eb177201c15ba (patch) | |
tree | 9da92ef8898104d8cc2abbbc0a3b449992845ab6 /src/bt.rs | |
parent | d452c64894d5067277a8842bbf0c8c9365f6b137 (diff) | |
download | kondou-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.rs | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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)] |