Trait concoct::ViewBuilder

source ·
pub trait ViewBuilder: 'static {
    // Required method
    fn build(&self) -> impl View;
}
Expand description

Builder for a View.

View is implemented for anything that implements this trait.

Required Methods§

source

fn build(&self) -> impl View

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ViewBuilder for &'static str

source§

fn build(&self) -> impl View

source§

impl ViewBuilder for ()

source§

fn build(&self) -> impl View

source§

impl ViewBuilder for String

source§

fn build(&self) -> impl View

source§

impl<V: ViewBuilder> ViewBuilder for Rc<V>

source§

fn build(&self) -> impl View

Implementors§