#[repr(u8)]pub enum EventCode {
StartTag = 1,
EndTag = 2,
EndTagImmediate = 3,
Text = 4,
AttributeName = 5,
AttributeValue = 6,
Eof = 7,
}
Expand description
Represents the type of the Event
.
Variants§
StartTag = 1
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
.
EndTag = 2
Closing tag. Corresponds to the </abcd>
part. The contained string is abcd
.
EndTagImmediate = 3
Immediately closed tag. Corresponds to the />
part. Never contains any string.
Text = 4
Text between tags.
AttributeName = 5
Name of an attribute - the part before =
. In well-formed XML, it is always followed by
AttributeValue
. The contained string is the attribute name.
AttributeValue = 6
Value of an attribute - the part after =
. In well-formed XML, it is always preceeded by
AttributeName
. The contained string is the attribute value.
Eof = 7
End of file. Never contains any string.
Trait Implementations§
Source§impl Ord for EventCode
impl Ord for EventCode
Source§impl PartialOrd for EventCode
impl PartialOrd for EventCode
impl Copy for EventCode
impl Eq for EventCode
impl StructuralPartialEq for EventCode
Auto Trait Implementations§
impl Freeze for EventCode
impl RefUnwindSafe for EventCode
impl Send for EventCode
impl Sync for EventCode
impl Unpin for EventCode
impl UnwindSafe for EventCode
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