pub enum DomNode {
Node {
node: DomElement,
},
Text {
node: DomText,
},
Comment {
node: DomComment,
},
}
Expand description
A Real DOM representative.
It is used to generate DOM changing commands. To create DomNode
tree conveniently use dom! macro.
Variants§
Implementations§
Trait Implementations§
Source§impl From<DomComment> for DomNode
impl From<DomComment> for DomNode
Source§fn from(node: DomComment) -> Self
fn from(node: DomComment) -> Self
Converts to this type from the input type.
Source§impl From<DomElement> for DomNode
impl From<DomElement> for DomNode
Source§fn from(node: DomElement) -> Self
fn from(node: DomElement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for DomNode
impl !RefUnwindSafe for DomNode
impl !Send for DomNode
impl !Sync for DomNode
impl Unpin for DomNode
impl !UnwindSafe for DomNode
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