gooey/interface/view/
sound.rs1use derive_more::From;
2
3#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd, From)]
4pub struct Sound (pub IndexType);
5
6pub type IndexType = u16;
7
8impl Sound {
9 pub fn index (&self) -> usize {
10 self.0 as usize
11 }
12}