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>