Skip to main content

SwitchLayoutThemePartialExt

Trait SwitchLayoutThemePartialExt 

Source
pub trait SwitchLayoutThemePartialExt {
    // Required methods
    fn margin(self, margin: impl Into<Gaps>) -> Self;
    fn width(self, width: impl Into<f32>) -> Self;
    fn height(self, height: impl Into<f32>) -> Self;
    fn padding(self, padding: impl Into<f32>) -> Self;
    fn thumb_size(self, thumb_size: impl Into<f32>) -> Self;
    fn toggled_thumb_size(self, toggled_thumb_size: impl Into<f32>) -> Self;
    fn thumb_offset(self, thumb_offset: impl Into<f32>) -> Self;
    fn toggled_thumb_offset(self, toggled_thumb_offset: impl Into<f32>) -> Self;
}

Required Methods§

Source

fn margin(self, margin: impl Into<Gaps>) -> Self

Source

fn width(self, width: impl Into<f32>) -> Self

Source

fn height(self, height: impl Into<f32>) -> Self

Source

fn padding(self, padding: impl Into<f32>) -> Self

Source

fn thumb_size(self, thumb_size: impl Into<f32>) -> Self

Source

fn toggled_thumb_size(self, toggled_thumb_size: impl Into<f32>) -> Self

Source

fn thumb_offset(self, thumb_offset: impl Into<f32>) -> Self

Source

fn toggled_thumb_offset(self, toggled_thumb_offset: impl Into<f32>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§