Enum rapid_xml::parser::EventCode [−][src]
#[repr(u8)]
pub enum EventCode {
StartTag,
EndTag,
EndTagImmediate,
Text,
AttributeName,
AttributeValue,
Eof,
}
Expand description
Represents the type of the Event
.
Variants
Start of an opening tag which may or may not have attributes and may be immediately closed.
Corresponds to the <abcd
part. The contained string is abcd
.
Closing tag. Corresponds to the </abcd>
part. The contained string is abcd
.
Immediately closed tag. Corresponds to the />
part. Never contains any string.
Text between tags.
Name of an attribute - the part before =
. In well-formed XML, it is always followed by
AttributeValue
. The contained string is the attribute name.
Value of an attribute - the part after =
. In well-formed XML, it is always preceeded by
AttributeName
. The contained string is the attribute value.
End of file. Never contains any string.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for EventCode
impl UnwindSafe for EventCode
Blanket Implementations
Mutably borrows from an owned value. Read more