Struct _xmlParserCtxt

Source
#[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_ulong

Trait Implementations§

Source§

impl Clone for _xmlParserCtxt

Source§

fn clone(&self) -> _xmlParserCtxt

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for _xmlParserCtxt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for _xmlParserCtxt

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.