Skip to main content

AsyncImageBuilder

Trait AsyncImageBuilder 

Source
pub trait AsyncImageBuilder: Sized {
    // Required methods
    fn circle(self) -> Self;
    fn rounded(self, radius: f64) -> Self;
    fn content_mode(self, mode: ContentMode) -> Self;
    fn placeholder_color(self, color: Color) -> Self;
}
Expand description

Builder methods of AsyncImage, reachable through a Decorated (docs/api-style.md “Typed builders and erasure”): generic modifiers and typed ones chain in any order.

Required Methods§

Source

fn circle(self) -> Self

Clip to the centered circle whose diameter is the shorter side.

Source

fn rounded(self, radius: f64) -> Self

Clip to a rounded rectangle.

Source

fn content_mode(self, mode: ContentMode) -> Self

Scale within the frame; defaults to aspect fill.

Source

fn placeholder_color(self, color: Color) -> Self

Color displayed while empty, loading, or invalid.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl AsyncImageBuilder for AsyncImage

Source§

impl<DecoratedInner> AsyncImageBuilder for Decorated<DecoratedInner>
where DecoratedInner: AsyncImageBuilder + Piece,