Skip to main content

StyledShadow

Trait StyledShadow 

Source
pub trait StyledShadow: Styled + Sized {
    // Provided method
    fn shadow_level(self, level: Shadow) -> Self { ... }
}
Expand description

Extends gpui::Styled with a named shadow scale.

Provided Methods§

Source

fn shadow_level(self, level: Shadow) -> Self

Applies the box-shadow layers for the given Shadow level.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§