pub enum Kind<'a> {
Document,
Fragment,
ShadowRoot(ShadowRoot),
Doctype {
name: &'a str,
public_id: &'a str,
system_id: &'a str,
},
Element {
ns: Ns,
name: &'a str,
},
Text(&'a str),
Comment(&'a str),
ProcessingInstruction {
target: &'a str,
data: &'a str,
},
Cdata(&'a str),
}Expand description
What a node is, as Document::kind reports it.
Variants§
Document
Fragment
ShadowRoot(ShadowRoot)
A shadow root: Document::shadow_host is its host.
Doctype
Element
Text(&'a str)
Comment(&'a str)
ProcessingInstruction
Cdata(&'a str)
Trait Implementations§
impl<'a> Eq for Kind<'a>
impl<'a> StructuralPartialEq for Kind<'a>
Auto Trait Implementations§
impl<'a> Forget for Kind<'a>
impl<'a> Freeze for Kind<'a>
impl<'a> Move for Kind<'a>
impl<'a> RefUnwindSafe for Kind<'a>
impl<'a> Send for Kind<'a>
impl<'a> Sync for Kind<'a>
impl<'a> Unpin for Kind<'a>
impl<'a> UnsafeUnpin for Kind<'a>
impl<'a> UnwindSafe for Kind<'a>
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