pub struct Renderer { /* private fields */ }Expand description
Manages the rendering of virtual DOM nodes to the real DOM.
Maintains a mapping between virtual nodes and real DOM elements, and handles creation, diffing, and patching of the DOM tree.
Implementations§
Source§impl Renderer
Implementation of the virtual DOM renderer.
impl Renderer
Implementation of the virtual DOM renderer.
Sourcepub fn render(&mut self, vnode: VirtualNode)
pub fn render(&mut self, vnode: VirtualNode)
Renders the given virtual DOM tree into the real DOM.
§Arguments
VirtualNode: The virtual DOM tree to render.
Source§impl Renderer
impl Renderer
pub fn get_mut_node_map(&mut self) -> &mut HashMap<usize, Element>
pub fn get_mut_root(&mut self) -> &mut Element
pub fn get_mut_current_tree(&mut self) -> &mut Option<VirtualNode>
pub fn get_mut_next_id(&mut self) -> &mut Rc<RefCell<usize>>
Auto Trait Implementations§
impl Freeze for Renderer
impl !RefUnwindSafe for Renderer
impl !Send for Renderer
impl !Sync for Renderer
impl Unpin for Renderer
impl UnsafeUnpin for Renderer
impl !UnwindSafe for Renderer
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