pub struct VElement {
pub tag: String,
pub attrs: Vec<(&'static str, String)>,
pub events: Vec<(&'static str, EventHandler)>,
pub children: Vec<VNode>,
pub key: Option<String>,
pub dom_ref: Rc<RefCell<Option<Node>>>,
pub listener_closures: Rc<RefCell<Vec<(&'static str, Closure<dyn FnMut(Event)>)>>>,
}Expand description
An HTML element representation.
Fields§
§tag: String§attrs: Vec<(&'static str, String)>§events: Vec<(&'static str, EventHandler)>§children: Vec<VNode>§key: Option<String>§dom_ref: Rc<RefCell<Option<Node>>>Reference to the actual DOM node (set during rendering).
listener_closures: Rc<RefCell<Vec<(&'static str, Closure<dyn FnMut(Event)>)>>>Stored Closures for active event listeners, so they can be removed during patching.
Auto Trait Implementations§
impl Freeze for VElement
impl !RefUnwindSafe for VElement
impl !Send for VElement
impl !Sync for VElement
impl Unpin for VElement
impl UnsafeUnpin for VElement
impl !UnwindSafe for VElement
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