pub struct Html {
    pub roots: Vec<Element>,
    pub hooks: Hooks,
    pub renderables: Renderables,
}

Fields§

§roots: Vec<Element>§hooks: Hooks§renderables: Renderables

Implementations§

source§

impl Html

source

pub fn new( roots: Vec<Element>, hooks: Hooks, renderables: Renderables ) -> ElementResult<Html>

source

pub fn roots(&self) -> &Vec<Element>

source

pub fn hooks(&self) -> &Hooks

source

pub fn inject_into(&self, element: &Element) -> ElementResult<()>

source

pub fn remove_event_listeners(&self) -> ElementResult<()>

Trait Implementations§

source§

impl Clone for Html

source§

fn clone(&self) -> Html

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 Render for Html

source§

fn render_node( self, parent: &mut WebElement, map: &mut Hooks, renderables: &mut Renderables ) -> ElementResult<()>

source§

fn render(&self, _w: &mut Vec<String>) -> ElementResult<()>

source§

fn remove_event_listeners(&self) -> ElementResult<()>

source§

fn html(&self) -> String

source§

fn render_tree(self) -> ElementResult<Html>where Self: Sized,

source§

fn render_tree_into( self, parent: &mut Element, renderables: &mut Renderables ) -> ElementResult<BTreeMap<String, Element>>where Self: Sized,

Auto Trait Implementations§

§

impl !RefUnwindSafe for Html

§

impl !Send for Html

§

impl !Sync for Html

§

impl Unpin for Html

§

impl !UnwindSafe for Html

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.