[−][src]Struct savory_elements::element::switch::Config
Fields
id: Option<Id>
styler: Option<<Switch as Stylable>::Styler>
theme: Theme
toggled: bool
disabled: 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]
self,
value: Option<impl Into<<Switch as Stylable>::Styler>>
) -> Self
pub fn and_try_styler(
self,
set_value: impl Fn(Option<<Switch as Stylable>::Styler>) -> Option<<Switch as Stylable>::Styler>
) -> Self
[src]
self,
set_value: impl Fn(Option<<Switch as Stylable>::Styler>) -> Option<<Switch as Stylable>::Styler>
) -> Self
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]
impl Config
[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]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,