EffectExt

Trait EffectExt 

Source
pub trait EffectExt: Sized {
    // Required method
    fn get_effect(&mut self) -> &mut EffectData;

    // Provided methods
    fn effect(self, effect: EffectData) -> Self { ... }
    fn overflow(self, overflow: impl Into<Overflow>) -> Self { ... }
    fn blur(self, blur: impl Into<f32>) -> Self { ... }
    fn rotation(self, rotation: impl Into<f32>) -> Self { ... }
    fn opacity(self, opacity: impl Into<f32>) -> Self { ... }
    fn scale(self, scale: impl Into<Scale>) -> Self { ... }
}

Required Methods§

Source

fn get_effect(&mut self) -> &mut EffectData

Provided Methods§

Source

fn effect(self, effect: EffectData) -> Self

Source

fn overflow(self, overflow: impl Into<Overflow>) -> Self

Source

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

Source

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

Source

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

Source

fn scale(self, scale: impl Into<Scale>) -> 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§