pub enum XmlElementType {
Root,
Prolog,
Element,
StartTag,
EndTag,
SelfClosingTag,
Attribute,
Text,
Comment,
CData,
}Expand description
XML element types.
Variants§
Root
Root element.
Prolog
Prolog.
Element
Element.
StartTag
Start tag.
EndTag
End tag.
SelfClosingTag
Self-closing tag.
Attribute
Attribute.
Text
Text content.
Comment
Comment.
CData
CDATA section.
Trait Implementations§
Source§impl Clone for XmlElementType
impl Clone for XmlElementType
Source§fn clone(&self) -> XmlElementType
fn clone(&self) -> XmlElementType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XmlElementType
impl Debug for XmlElementType
Source§impl<'de> Deserialize<'de> for XmlElementType
impl<'de> Deserialize<'de> for XmlElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for XmlElementType
impl ElementType for XmlElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<XmlTokenType> for XmlElementType
impl From<XmlTokenType> for XmlElementType
Source§fn from(token: XmlTokenType) -> Self
fn from(token: XmlTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for XmlElementType
impl Hash for XmlElementType
Source§impl PartialEq for XmlElementType
impl PartialEq for XmlElementType
Source§impl Serialize for XmlElementType
impl Serialize for XmlElementType
impl Copy for XmlElementType
impl Eq for XmlElementType
impl StructuralPartialEq for XmlElementType
Auto Trait Implementations§
impl Freeze for XmlElementType
impl RefUnwindSafe for XmlElementType
impl Send for XmlElementType
impl Sync for XmlElementType
impl Unpin for XmlElementType
impl UnsafeUnpin for XmlElementType
impl UnwindSafe for XmlElementType
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