pub enum SaxEvent {
SetDocumentLocator,
StartDocument,
EndDocument,
StartElementNs {
local: String,
prefix: Option<String>,
uri: Option<String>,
namespaces: Vec<(Option<String>, String)>,
attributes: Vec<SaxAttr>,
nb_defaulted: i32,
},
EndElementNs {
local: String,
prefix: Option<String>,
uri: Option<String>,
},
Characters {
data: String,
},
CData {
data: String,
},
Comment(String),
ProcessingInstruction {
target: String,
data: Option<String>,
},
Warning(String),
Error(String),
}Expand description
One SAX2 callback as recorded for the event-exact gate.
Variants§
SetDocumentLocator
StartDocument
EndDocument
StartElementNs
Fields
EndElementNs
Characters
CData
Comment(String)
ProcessingInstruction
Warning(String)
Error(String)
Trait Implementations§
impl Eq for SaxEvent
impl StructuralPartialEq for SaxEvent
Auto Trait Implementations§
impl Freeze for SaxEvent
impl RefUnwindSafe for SaxEvent
impl Send for SaxEvent
impl Sync for SaxEvent
impl Unpin for SaxEvent
impl UnsafeUnpin for SaxEvent
impl UnwindSafe for SaxEvent
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