pub struct ElementNode<V: FromAnyValue = ()> {
pub tag: String,
pub namespace: Option<String>,
pub attributes: FxHashMap<OwnedAttributeDiscription, OwnedAttributeValue<V>>,
pub listeners: FxHashSet<String>,
}
Expand description
A element node in the RealDom
Fields§
§tag: String
The tag of the element
namespace: Option<String>
The namespace of the element
attributes: FxHashMap<OwnedAttributeDiscription, OwnedAttributeValue<V>>
The attributes of the element
listeners: FxHashSet<String>
The events the element is listening for
Implementations§
Trait Implementations§
Source§impl<V: Clone + FromAnyValue> Clone for ElementNode<V>
impl<V: Clone + FromAnyValue> Clone for ElementNode<V>
Source§fn clone(&self) -> ElementNode<V>
fn clone(&self) -> ElementNode<V>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<V: Debug + FromAnyValue> Debug for ElementNode<V>
impl<V: Debug + FromAnyValue> Debug for ElementNode<V>
Source§impl<V: Default + FromAnyValue> Default for ElementNode<V>
impl<V: Default + FromAnyValue> Default for ElementNode<V>
Source§fn default() -> ElementNode<V>
fn default() -> ElementNode<V>
Returns the “default value” for a type. Read more
Source§impl<V: FromAnyValue> From<ElementNode<V>> for NodeType<V>
impl<V: FromAnyValue> From<ElementNode<V>> for NodeType<V>
Source§fn from(element: ElementNode<V>) -> Self
fn from(element: ElementNode<V>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<V> Freeze for ElementNode<V>
impl<V> RefUnwindSafe for ElementNode<V>where
V: RefUnwindSafe,
impl<V> Send for ElementNode<V>where
V: Send,
impl<V> Sync for ElementNode<V>where
V: Sync,
impl<V> Unpin for ElementNode<V>where
V: Unpin,
impl<V> UnwindSafe for ElementNode<V>where
V: UnwindSafe,
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