Trait Prop

Source
pub trait Prop {
    type Builder;

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

Describes the properties of a component. This is typically generated by the Prop derive macro as part of the #[component] macro.

Required Associated Types§

Source

type Builder

Builder type, automatically generated.

Required Methods§

Source

fn builder() -> Self::Builder

The builder should be automatically generated using the Prop derive macro.

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§