pub enum NodeData {
Element(ElementData),
Text(RefCell<String>),
Comment(RefCell<String>),
ProcessingInstruction(RefCell<(String, String)>),
Doctype(Doctype),
Document(DocumentData),
DocumentFragment,
}
Expand description
Node data specific to the node type.
Variants§
Element(ElementData)
Element node
Text(RefCell<String>)
Text node
Comment(RefCell<String>)
Comment node
ProcessingInstruction(RefCell<(String, String)>)
Processing instruction node
Doctype(Doctype)
Doctype node
Document(DocumentData)
Document node
DocumentFragment
Document fragment node
Trait Implementations§
impl StructuralPartialEq for NodeData
Auto Trait Implementations§
impl !Freeze for NodeData
impl !RefUnwindSafe for NodeData
impl !Send for NodeData
impl !Sync for NodeData
impl Unpin for NodeData
impl !UnwindSafe for NodeData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)