Struct virtual_node::VElement
source · [−]pub struct VElement {
pub tag: String,
pub attrs: HashMap<String, AttributeValue>,
pub events: Events,
pub children: Vec<VirtualNode>,
pub special_attributes: SpecialAttributes,
}Fields
tag: StringThe HTML tag, such as “div”
attrs: HashMap<String, AttributeValue>HTML attributes such as id, class, style, etc
events: EventsEvents that will get added to your real DOM element via .addEventListener
Events natively handled in HTML such as onclick, onchange, oninput and others
can be found in [VElement.known_events]
children: Vec<VirtualNode>The children of this VirtualNode. So a
special_attributes: SpecialAttributesImplementations
Trait Implementations
sourceimpl From<VElement> for VirtualNode
impl From<VElement> for VirtualNode
impl StructuralPartialEq for VElement
Auto Trait Implementations
impl !RefUnwindSafe for VElement
impl !Send for VElement
impl !Sync for VElement
impl Unpin for VElement
impl !UnwindSafe for VElement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more