Skip to main content

Props

Trait Props 

Source
pub trait Props {
    type Builder;

    const SHARES_UI: bool = false;

    // Required method
    fn builder() -> Self::Builder;
}
Expand description

Implemented by every #[component] props struct.

Provided Associated Constants§

Source

const SHARES_UI: bool = false

Whether the component draws into its parent’s Ui.

Set by #[component(shares_ui)]. Such a component still gets a hook scope of its own, but no Ui::push_id, so it can reach the parent’s layout: that is what docked panels and grid rows need.

Required Associated Types§

Source

type Builder

The typed-builder builder type for this props struct.

Required Methods§

Source

fn builder() -> Self::Builder

Start building.

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§