pub enum DomNode {
Node {
node: DomElement,
},
Text {
node: DomText,
},
Comment {
node: DomComment,
},
}
Expand description
A Real DOM representative
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