Trait zng_wgt_slider::SelectorValue

source ·
pub trait SelectorValue: VarValue {
    // Required method
    fn to_selector(value: BoxedVar<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§

source

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

Make the selector.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SelectorValue for Length

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for f32

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for f64

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for i8

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for i16

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for i32

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for i64

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for i128

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for u8

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for u16

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for u32

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for u64

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for u128

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for Factor

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for FactorPercent

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for Dip

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

source§

impl SelectorValue for Px

source§

fn to_selector(value: BoxedVar<Self>, min: Self, max: Self) -> Selector

Implementors§