pub enum KindTest {
AnyKind,
Text,
Comment,
ProcessingInstruction(Option<String>),
Document(Option<Box<KindTest>>),
Element(ElementTest),
Attribute(AttributeTest),
SchemaElement(String),
SchemaAttribute(String),
}Expand description
Kind test (node(), text(), element(), etc.).
Variants§
AnyKind
node() - matches any node.
Text
text() - matches text nodes.
Comment
comment() - matches comment nodes.
ProcessingInstruction(Option<String>)
processing-instruction() or processing-instruction('name').
Document(Option<Box<KindTest>>)
document-node() or document-node(element(...)).
Element(ElementTest)
element() or element(name) or element(name, type).
Attribute(AttributeTest)
attribute() or attribute(name) or attribute(name, type).
SchemaElement(String)
schema-element(name).
SchemaAttribute(String)
schema-attribute(name).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KindTest
impl RefUnwindSafe for KindTest
impl Send for KindTest
impl Sync for KindTest
impl Unpin for KindTest
impl UnsafeUnpin for KindTest
impl UnwindSafe for KindTest
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