Skip to main content

UiPatchTarget

Trait UiPatchTarget 

Source
pub trait UiPatchTarget: Sized {
    // Required method
    fn apply_ui_patch(self, patch: UiPatch) -> Self;
}
Expand description

A type that opts into the ui() builder surface by accepting a UiPatch.

This is intentionally an ecosystem-only authoring surface (see ADR 0160).

Required Methods§

Source

fn apply_ui_patch(self, patch: UiPatch) -> Self

Applies an aggregated authoring patch (chrome + layout) and returns the refined value.

Most types will merge the relevant parts of the patch into their internal refinement structs (or ignore fields they don’t support).

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§