Skip to main content

SkeletonThemePartialExt

Trait SkeletonThemePartialExt 

Source
pub trait SkeletonThemePartialExt {
    // Required methods
    fn background(self, background: impl Into<Color>) -> Self;
    fn shimmer_color(self, shimmer_color: impl Into<Color>) -> Self;
    fn duration(self, duration: impl Into<Duration>) -> Self;
    fn animation(self, animation: impl Into<SkeletonAnimation>) -> Self;
    fn corner_radius(self, corner_radius: impl Into<CornerRadius>) -> Self;
    fn shimmer_from(self, shimmer_from: impl Into<f32>) -> Self;
    fn shimmer_to(self, shimmer_to: impl Into<f32>) -> Self;
    fn shimmer_width(self, shimmer_width: impl Into<f32>) -> Self;
}

Required Methods§

Source

fn background(self, background: impl Into<Color>) -> Self

Source

fn shimmer_color(self, shimmer_color: impl Into<Color>) -> Self

Source

fn duration(self, duration: impl Into<Duration>) -> Self

Source

fn animation(self, animation: impl Into<SkeletonAnimation>) -> Self

Source

fn corner_radius(self, corner_radius: impl Into<CornerRadius>) -> Self

Source

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

Source

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

Source

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