Trait viewy::Renderable

source ·
pub trait Renderable: DynClone + Send + Sync + Debug {
    // Required method
    fn render(&self) -> Node;

    // Provided method
    fn to_html(&self) -> String { ... }
}

Required Methods§

source

fn render(&self) -> Node

Provided Methods§

source

fn to_html(&self) -> String

Trait Implementations§

source§

impl<'clone> Clone for Box<dyn Renderable + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn Renderable + Send + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn Renderable + Send + Sync + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn Renderable + Sync + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Renderable for Box<dyn Renderable>

source§

fn render(&self) -> Node

source§

fn to_html(&self) -> String

Implementations on Foreign Types§

source§

impl Renderable for Box<dyn Renderable>

source§

fn render(&self) -> Node

Implementors§