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§
Sourcefn content_mode(self, mode: ContentMode) -> Self
fn content_mode(self, mode: ContentMode) -> Self
Scale within the frame; defaults to aspect fill.
Sourcefn placeholder_color(self, color: Color) -> Self
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".