soundchip/prelude/
values.rs

1mod normal_signed;
2pub use normal_signed::*;
3
4mod normal;
5pub use normal::*;
6
7// A KnotValue is always converted to f32 for any math operation,
8// so implementing all math ops seems unnecessary?
9use core::{fmt, default};
10pub trait KnotValue:
11    Copy +
12    Clone +
13    Sized +
14    PartialEq +
15    From<f32> +
16    Into<f32> +
17    fmt::Debug +
18    fmt::Display +
19    default::Default
20{
21}
22
23impl KnotValue for f32 {
24
25}