#[repr(C)]pub struct _xmlParserCtxt {Show 89 fields
pub sax: *mut _xmlSAXHandler,
pub userData: *mut c_void,
pub myDoc: xmlDocPtr,
pub wellFormed: c_int,
pub replaceEntities: c_int,
pub version: *const xmlChar,
pub encoding: *const xmlChar,
pub standalone: c_int,
pub html: c_int,
pub input: xmlParserInputPtr,
pub inputNr: c_int,
pub inputMax: c_int,
pub inputTab: *mut xmlParserInputPtr,
pub node: xmlNodePtr,
pub nodeNr: c_int,
pub nodeMax: c_int,
pub nodeTab: *mut xmlNodePtr,
pub record_info: c_int,
pub node_seq: xmlParserNodeInfoSeq,
pub errNo: c_int,
pub hasExternalSubset: c_int,
pub hasPErefs: c_int,
pub external: c_int,
pub valid: c_int,
pub validate: c_int,
pub vctxt: xmlValidCtxt,
pub instate: xmlParserInputState,
pub token: c_int,
pub directory: *mut c_char,
pub name: *const xmlChar,
pub nameNr: c_int,
pub nameMax: c_int,
pub nameTab: *mut *const xmlChar,
pub nbChars: c_long,
pub checkIndex: c_long,
pub keepBlanks: c_int,
pub disableSAX: c_int,
pub inSubset: c_int,
pub intSubName: *const xmlChar,
pub extSubURI: *mut xmlChar,
pub extSubSystem: *mut xmlChar,
pub space: *mut c_int,
pub spaceNr: c_int,
pub spaceMax: c_int,
pub spaceTab: *mut c_int,
pub depth: c_int,
pub entity: xmlParserInputPtr,
pub charset: c_int,
pub nodelen: c_int,
pub nodemem: c_int,
pub pedantic: c_int,
pub _private: *mut c_void,
pub loadsubset: c_int,
pub linenumbers: c_int,
pub catalogs: *mut c_void,
pub recovery: c_int,
pub progressive: c_int,
pub dict: xmlDictPtr,
pub atts: *mut *const xmlChar,
pub maxatts: c_int,
pub docdict: c_int,
pub str_xml: *const xmlChar,
pub str_xmlns: *const xmlChar,
pub str_xml_ns: *const xmlChar,
pub sax2: c_int,
pub nsNr: c_int,
pub nsMax: c_int,
pub nsTab: *mut *const xmlChar,
pub attallocs: *mut c_int,
pub pushTab: *mut xmlStartTag,
pub attsDefault: xmlHashTablePtr,
pub attsSpecial: xmlHashTablePtr,
pub nsWellFormed: c_int,
pub options: c_int,
pub dictNames: c_int,
pub freeElemsNr: c_int,
pub freeElems: xmlNodePtr,
pub freeAttrsNr: c_int,
pub freeAttrs: xmlAttrPtr,
pub lastError: xmlError,
pub parseMode: xmlParserMode,
pub nbentities: c_ulong,
pub sizeentities: c_ulong,
pub nodeInfo: *mut xmlParserNodeInfo,
pub nodeInfoNr: c_int,
pub nodeInfoMax: c_int,
pub nodeInfoTab: *mut xmlParserNodeInfo,
pub input_id: c_int,
pub sizeentcopy: c_ulong,
}Expand description
xmlParserCtxt:
The parser context. NOTE This doesn’t completely define the parser state, the (current ?) design of the parser uses recursive function calls since this allow and easy mapping from the production rules of the specification to the actual code. The drawback is that the actual function call also reflect the parser state. However most of the parsing routines takes as the only argument the parser context pointer, so migrating to a state based parser for progressive parsing shouldn’t be too hard.
Fields§
§sax: *mut _xmlSAXHandler§userData: *mut c_void§myDoc: xmlDocPtr§wellFormed: c_int§replaceEntities: c_int§version: *const xmlChar§encoding: *const xmlChar§standalone: c_int§html: c_int§input: xmlParserInputPtr§inputNr: c_int§inputMax: c_int§inputTab: *mut xmlParserInputPtr§node: xmlNodePtr§nodeNr: c_int§nodeMax: c_int§nodeTab: *mut xmlNodePtr§record_info: c_int§node_seq: xmlParserNodeInfoSeq§errNo: c_int§hasExternalSubset: c_int§hasPErefs: c_int§external: c_int§valid: c_int§validate: c_int§vctxt: xmlValidCtxt§instate: xmlParserInputState§token: c_int§directory: *mut c_char§name: *const xmlChar§nameNr: c_int§nameMax: c_int§nameTab: *mut *const xmlChar§nbChars: c_long§checkIndex: c_long§keepBlanks: c_int§disableSAX: c_int§inSubset: c_int§intSubName: *const xmlChar§extSubURI: *mut xmlChar§extSubSystem: *mut xmlChar§space: *mut c_int§spaceNr: c_int§spaceMax: c_int§spaceTab: *mut c_int§depth: c_int§entity: xmlParserInputPtr§charset: c_int§nodelen: c_int§nodemem: c_int§pedantic: c_int§_private: *mut c_void§loadsubset: c_int§linenumbers: c_int§catalogs: *mut c_void§recovery: c_int§progressive: c_int§dict: xmlDictPtr§atts: *mut *const xmlChar§maxatts: c_int§docdict: c_int§str_xml: *const xmlChar§str_xmlns: *const xmlChar§str_xml_ns: *const xmlChar§sax2: c_int§nsNr: c_int§nsMax: c_int§nsTab: *mut *const xmlChar§attallocs: *mut c_int§pushTab: *mut xmlStartTag§attsDefault: xmlHashTablePtr§attsSpecial: xmlHashTablePtr§nsWellFormed: c_int§options: c_int§dictNames: c_int§freeElemsNr: c_int§freeElems: xmlNodePtr§freeAttrsNr: c_int§freeAttrs: xmlAttrPtr§lastError: xmlError§parseMode: xmlParserMode§nbentities: c_ulong§sizeentities: c_ulong§nodeInfo: *mut xmlParserNodeInfo§nodeInfoNr: c_int§nodeInfoMax: c_int§nodeInfoTab: *mut xmlParserNodeInfo§input_id: c_int§sizeentcopy: c_ulongTrait Implementations§
Source§impl Clone for _xmlParserCtxt
impl Clone for _xmlParserCtxt
Source§fn clone(&self) -> _xmlParserCtxt
fn clone(&self) -> _xmlParserCtxt
Returns a copy 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 _xmlParserCtxt
impl Debug for _xmlParserCtxt
impl Copy for _xmlParserCtxt
Auto Trait Implementations§
impl Freeze for _xmlParserCtxt
impl RefUnwindSafe for _xmlParserCtxt
impl !Send for _xmlParserCtxt
impl !Sync for _xmlParserCtxt
impl Unpin for _xmlParserCtxt
impl UnwindSafe for _xmlParserCtxt
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