wireplumber.rs icon indicating copy to clipboard operation
wireplumber.rs copied to clipboard

Rework `Constraint` type

Open arcnmx opened this issue 2 years ago • 0 comments

By using enums and specific types for the supported primitives, Constraint could be represented better. It's a bit messy because some constraints take a Number | Boolean, others String | Number, and then there's RangeInclusive<Number>...

~~Since the glib-serde dep is currently only used by Constraint's serde impls, so it could be removed as a core dep!~~ (this now uses LuaVariant, which it won't need anymore once the above rework is completed)

arcnmx avatar Mar 15 '22 17:03 arcnmx