Add traits to SampleFormat's #[derive(...)] invocation (#864)
Specifically, `PartialOrd`, `Ord`, & `Hash`.
This commit is contained in:
parent
437d47f762
commit
2ec761d30b
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ pub use dasp_sample::{FromSample, Sample, I24, I48, U24, U48};
|
||||||
|
|
||||||
/// Format that each sample has.
|
/// Format that each sample has.
|
||||||
#[cfg_attr(target_os = "emscripten", wasm_bindgen)]
|
#[cfg_attr(target_os = "emscripten", wasm_bindgen)]
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub enum SampleFormat {
|
pub enum SampleFormat {
|
||||||
/// `i8` with a valid range of 'u8::MIN..=u8::MAX' with `0` being the origin
|
/// `i8` with a valid range of 'u8::MIN..=u8::MAX' with `0` being the origin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue