diff options
author | metamuffin <metamuffin@disroot.org> | 2023-01-16 10:57:40 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-01-16 10:57:40 +0100 |
commit | 9f9449ddd58eb07d20e14e7a75c7387c9cc17ebe (patch) | |
tree | 52e39085589303d3d2e386a3575152fb6594bb61 /common/src/impl.rs | |
parent | e3f1a8ac9f4c9a015e9eac769fb3262e3bd16bad (diff) | |
download | jellything-9f9449ddd58eb07d20e14e7a75c7387c9cc17ebe.tar jellything-9f9449ddd58eb07d20e14e7a75c7387c9cc17ebe.tar.bz2 jellything-9f9449ddd58eb07d20e14e7a75c7387c9cc17ebe.tar.zst |
write more code
Diffstat (limited to 'common/src/impl.rs')
-rw-r--r-- | common/src/impl.rs | 11 |
1 files changed, 11 insertions, 0 deletions
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', + } + } +} |