pub enum Xml<S> {
XmlDecl(Vec<(S, S)>),
DocType {
name: S,
external: Option<S>,
internal: Option<S>,
},
Pi {
target: S,
content: Option<S>,
},
Tac(S, Vec<(S, S)>, Option<Box<Self>>),
Seq(Vec<Self>),
Scalar(Val),
Cdata(S),
Comment(S),
}Expand description
XML value.
Variants§
XmlDecl(Vec<(S, S)>)
XML declaration, e.g. <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
DocType
DOCTYPE directive, e.g. <!DOCTYPE greeting SYSTEM "hello.dtd" [...]>
Fields
§
name: Sname of the document type, e.g. “greeting”
Pi
Processing instruction, e.g. `
Fields
§
target: Starget, e.g. xml-stylesheet
Tac(S, Vec<(S, S)>, Option<Box<Self>>)
An element consisting of a Tag, an Attribute, and Content
For example, <a href="bla">Link</a>.
Seq(Vec<Self>)
A sequence of XML values, e.g. Hello<br />World
Scalar(Val)
A string, e.g. Hello world
Cdata(S)
CDATA, e.g. <![CDATA[text]]>
Comment(S)
Comment, e.g. <!-- text -->
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> !Freeze for Xml<S>
impl<S> RefUnwindSafe for Xml<S>where
S: RefUnwindSafe,
impl<S> !Send for Xml<S>
impl<S> !Sync for Xml<S>
impl<S> Unpin for Xml<S>where
S: Unpin,
impl<S> UnwindSafe for Xml<S>where
S: UnwindSafe,
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