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
impl Html
pub fn new( roots: Vec<Element>, hooks: Hooks, renderables: Renderables, ) -> ElementResult<Html>
pub fn roots(&self) -> &Vec<Element>
pub fn hooks(&self) -> &Hooks
pub fn inject_into(&self, element: &Element) -> ElementResult<()>
pub fn remove_event_listeners(&self) -> ElementResult<()>
Trait Implementations§
Source§impl Render for Html
impl Render for Html
fn render_node( self, parent: &mut WebElement, map: &mut Hooks, renderables: &mut Renderables, ) -> ElementResult<()>
fn render(&self, _w: &mut Vec<String>) -> ElementResult<()>
fn remove_event_listeners(&self) -> ElementResult<()>
fn html(&self) -> String
fn render_tree(self) -> ElementResult<Html>where
Self: Sized,
fn render_tree_into(
self,
parent: &mut Element,
renderables: &mut Renderables,
) -> ElementResult<BTreeMap<String, Element>>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for Html
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more