[][src]Struct savory_elements::element::switch::Config

pub struct Config {
    pub id: Option<Id>,
    pub styler: Option<<Switch as Stylable>::Styler>,
    pub theme: Theme,
    pub toggled: bool,
    pub disabled: bool,
}

Fields

id: Option<Id>styler: Option<<Switch as Stylable>::Styler>theme: Themetoggled: booldisabled: bool

Implementations

impl Config[src]

pub fn id(self, value: impl Into<Id>) -> Self[src]

pub fn try_id(self, value: Option<impl Into<Id>>) -> Self[src]

pub fn and_try_id(self, set_value: impl Fn(Option<Id>) -> Option<Id>) -> Self[src]

pub fn styler(self, value: impl Into<<Switch as Stylable>::Styler>) -> Self[src]

pub fn try_styler(
    self,
    value: Option<impl Into<<Switch as Stylable>::Styler>>
) -> Self
[src]

pub fn and_try_styler(
    self,
    set_value: impl Fn(Option<<Switch as Stylable>::Styler>) -> Option<<Switch as Stylable>::Styler>
) -> Self
[src]

pub fn theme(self, value: impl Into<Theme>) -> Self[src]

pub fn and_theme(self, set_value: impl Fn(Theme) -> Theme) -> Self[src]

pub fn toggled(self, value: impl Into<bool>) -> Self[src]

pub fn and_toggled(self, set_value: impl Fn(bool) -> bool) -> Self[src]

pub fn disabled(self, value: impl Into<bool>) -> Self[src]

pub fn and_disabled(self, set_value: impl Fn(bool) -> bool) -> Self[src]

impl Config[src]

pub fn new() -> Self[src]

impl Config[src]

pub fn init(self, orders: &mut impl Orders<Msg>) -> Switch[src]

Auto Trait Implementations

impl !RefUnwindSafe for Config

impl !Send for Config

impl !Sync for Config

impl Unpin for Config

impl !UnwindSafe for Config

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,