This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.
yew::html

Trait Properties

Source
pub trait Properties: PartialEq {
    type Builder;

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

Trait for building properties for a component

Required Associated Types§

Source

type Builder

Builder that will be used to construct properties

Required Methods§

Source

fn builder() -> Self::Builder

Entrypoint for building properties

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.

Implementations on Foreign Types§

Source§

impl Properties for ()

Source§

type Builder = EmptyBuilder

Source§

fn builder() -> Self::Builder

Implementors§

Source§

impl Properties for SuspenseProps

Source§

type Builder = SuspensePropsBuilder

Source§

impl Properties for ChildrenProps

Source§

type Builder = ChildrenPropsBuilder

Source§

impl<T: Clone + PartialEq> Properties for ContextProviderProps<T>

Source§

type Builder = ContextProviderPropsBuilder<T>