Struct freya_native_core::node::ElementNode
source · pub struct ElementNode<V: FromAnyValue = ()> {
pub tag: TagName,
pub attributes: FxHashMap<AttributeName, OwnedAttributeValue<V>>,
pub listeners: FxHashSet<EventName>,
}
Expand description
A element node in the RealDom
Fields§
§tag: TagName
The tag name of the element
attributes: FxHashMap<AttributeName, OwnedAttributeValue<V>>
The attributes of the element
listeners: FxHashSet<EventName>
The events the element is listening for
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: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.