1
0
Fork 0

Make parameter pointers hashable

So we can use have generic APIs that take a `Param` implementation and
know how to map those to the parameter IDs used by the plugin API.
This commit is contained in:
Robbert van der Helm 2022-02-05 17:43:15 +01:00
parent e97082aba2
commit 640fe0ebd7

View file

@ -65,7 +65,7 @@ pub trait Params {
}
/// Internal pointers to parameters. This is an implementation detail used by the wrappers.
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
pub enum ParamPtr {
FloatParam(*mut super::FloatParam),
IntParam(*mut super::IntParam),