Struct dioxus_core::VElement
source · [−]pub struct VElement<'a> {
pub id: Cell<Option<ElementId>>,
pub key: Option<&'a str>,
pub tag: &'static str,
pub namespace: Option<&'static str>,
pub parent: Cell<Option<ElementId>>,
pub listeners: &'a [Listener<'a>],
pub attributes: &'a [Attribute<'a>],
pub children: &'a [VNode<'a>],
}Expand description
An element like a “div” with children, listeners, and attributes.
Fields
id: Cell<Option<ElementId>>The ElementId of the VText.
key: Option<&'a str>The key of the element to be used during keyed diffing.
tag: &'static strThe tag name of the element.
IE “div”
namespace: Option<&'static str>The namespace of the VElement
IE “svg”
parent: Cell<Option<ElementId>>The parent of the Element (if any).
Used when bubbling events
listeners: &'a [Listener<'a>]The Listeners of the VElement.
attributes: &'a [Attribute<'a>]The attributes of the VElement.
children: &'a [VNode<'a>]The children of the VElement.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for VElement<'a>
impl<'a> !Send for VElement<'a>
impl<'a> !Sync for VElement<'a>
impl<'a> Unpin for VElement<'a>
impl<'a> !UnwindSafe for VElement<'a>
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