Skip to main content

Frosted

Trait Frosted 

Source
pub trait Frosted:
    Styled
    + IntoElement
    + Sized {
    // Provided method
    fn material(self, blur_radius: f32) -> Material { ... }
}
Expand description

Frost this card at the corner radius it already carries.

The radius comes off the element’s own style, so a caller chaining its own rounding — card.rounded(px(4.0)).material(MENU_BLUR) — gets a blur cut to the corners it just asked for.

Provided Methods§

Source

fn material(self, blur_radius: f32) -> Material

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§