Struct nih_plug_vizia::widgets::param_base::ParamWidgetData
source · pub struct ParamWidgetData<L, Params, P, FMap>where
L: Lens<Target = Params> + Clone,
Params: 'static,
P: Param + 'static,
FMap: Fn(&Params) -> &P + Copy + 'static,{ /* private fields */ }
Expand description
Data and lenses that can be used to draw the parameter widget. The param
field
should only be used for looking up static data. Prefer the make_lens()
function for binding parameter data to element properties.
Implementations§
source§impl<L, Params, P, FMap> ParamWidgetData<L, Params, P, FMap>where
L: Lens<Target = Params> + Clone,
Params: 'static,
P: Param + 'static,
FMap: Fn(&Params) -> &P + Copy + 'static,
impl<L, Params, P, FMap> ParamWidgetData<L, Params, P, FMap>where L: Lens<Target = Params> + Clone, Params: 'static, P: Param + 'static, FMap: Fn(&Params) -> &P + Copy + 'static,
Trait Implementations§
Auto Trait Implementations§
impl<L, Params, P, FMap> RefUnwindSafe for ParamWidgetData<L, Params, P, FMap>where FMap: RefUnwindSafe, L: RefUnwindSafe, P: RefUnwindSafe,
impl<L, Params, P, FMap> Send for ParamWidgetData<L, Params, P, FMap>where FMap: Send, L: Send, P: Sync,
impl<L, Params, P, FMap> Sync for ParamWidgetData<L, Params, P, FMap>where FMap: Sync, L: Sync, P: Sync,
impl<L, Params, P, FMap> Unpin for ParamWidgetData<L, Params, P, FMap>where FMap: Unpin, L: Unpin,
impl<L, Params, P, FMap> UnwindSafe for ParamWidgetData<L, Params, P, FMap>where FMap: UnwindSafe, L: UnwindSafe, P: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more