Skip to main content

SwitchLayoutThemePartialExt

Trait SwitchLayoutThemePartialExt 

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 pressed_thumb_size_offset(
        self,
        pressed_thumb_size_offset: 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§

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 pressed_thumb_size_offset( self, pressed_thumb_size_offset: 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

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§