pub enum Value {
Root,
Element(Element),
Text(Text),
ProcessingInstruction(ProcessingInstruction),
Comment(Comment),
}Expand description
An XML value.
Access it using Xot::value or
mutably using Xot::value_mut.
Variants§
Root
Document root that holds everything. Note that this not the same as the document element.
Element(Element)
Element; it has a name, attributes and namespace information.
Text(Text)
Text. You can get and set the text value.
ProcessingInstruction(ProcessingInstruction)
Processing instruction.
Comment(Comment)
Comment.
Implementations§
Trait Implementations§
source§impl PartialEq<Value> for Value
impl PartialEq<Value> for Value
impl Eq for Value
impl StructuralEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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