From 9f9449ddd58eb07d20e14e7a75c7387c9cc17ebe Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 16 Jan 2023 10:57:40 +0100 Subject: write more code --- common/src/impl.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 common/src/impl.rs (limited to 'common/src/impl.rs') diff --git a/common/src/impl.rs b/common/src/impl.rs new file mode 100644 index 0000000..0808eb8 --- /dev/null +++ b/common/src/impl.rs @@ -0,0 +1,11 @@ +use crate::SourceTrackKind; + +impl SourceTrackKind { + pub fn letter(&self) -> char { + match self { + SourceTrackKind::Video { .. } => 'v', + SourceTrackKind::Audio { .. } => 'a', + SourceTrackKind::Subtitles => 's', + } + } +} -- cgit v1.2.3-70-g09d2