pub enum Kind {
Attribute,
Primitive(ValueKind),
Complex(&'static str),
Resource,
Xhtml,
Choice(&'static [(&'static str, Kind)]),
}Expand description
How an element travels in XML.
Variants§
Attribute
A plain string carried as an attribute (Element.id, Extension.url).
Primitive(ValueKind)
A primitive element: the value attribute, an id attribute, and
extension children.
Complex(&'static str)
A complex element of the named type.
Resource
A resource inside its wrapper element.
Xhtml
The XHTML narrative, passed through as text.
Choice(&'static [(&'static str, Kind)])
A choice element: the name is the stem, the suffix names the type.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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