pub enum NodeData {
Document,
Text(RefCell<Tendril<UTF8>>),
Element(ElementData),
Other,
}
Expand description
The data of a Node
.
Variants§
Document
The root node of the Html
.
Text(RefCell<Tendril<UTF8>>)
A text node.
Element(ElementData)
An HTML element (aka a tag).
Other
Other types (comment, processing instruction, …).
Trait Implementations§
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)