pub enum DomNode {
Node {
node: DomElement,
},
Text {
node: DomText,
},
Comment {
node: DomComment,
},
}
Expand description
A Real DOM representative
Variants
Node
Fields
node: DomElement
Text
Fields
node: DomText
Comment
Fields
node: DomComment
Implementations
Trait Implementations
sourceimpl From<DomComment> for DomNode
impl From<DomComment> for DomNode
sourcefn from(node: DomComment) -> Self
fn from(node: DomComment) -> Self
Converts to this type from the input type.
sourceimpl From<DomElement> for DomNode
impl From<DomElement> for DomNode
sourcefn from(node: DomElement) -> Self
fn from(node: DomElement) -> Self
Converts to this type from the input type.
sourceimpl From<DomNode> for DomNodeFragment
impl From<DomNode> for DomNodeFragment
Auto Trait Implementations
impl !RefUnwindSafe for DomNode
impl !Send for DomNode
impl !Sync for DomNode
impl Unpin for DomNode
impl !UnwindSafe for DomNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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