Trait zng::slider::SelectorValue
source · pub trait SelectorValue: VarValue {
// Required method
fn to_selector(
value: Box<dyn VarBoxed<Self>>,
min: Self,
max: Self,
) -> Selector;
}
Expand description
Represents a type that can auto implement a Selector
.
§Implementing
This trait is implemented for all primitive type and Zng layout types, if a type does not you
can declare custom conversions using Selector::value
.
Required Methods§
sourcefn to_selector(value: Box<dyn VarBoxed<Self>>, min: Self, max: Self) -> Selector
fn to_selector(value: Box<dyn VarBoxed<Self>>, min: Self, max: Self) -> Selector
Make the selector.
Object Safety§
This trait is not object safe.