Struct vtd_xml::VtdGen [] [src]

pub struct VtdGen {
    pub vtd_gen: *mut VTDGen,
    // some fields omitted
}

Parses the XMLs and owns the index.

Fields

Methods

impl VtdGen
[src]

Tells VTD-XML to parse the given file.

NB: VTD-XML reads the file into a malloc memory buffer.
If you don't want that extra copy then use the parse_mmap method instead.

  • ns - Whether to turn the XML namespaces support on.
  • path - Location of the XML file.

Maps the file into RAM and tells VTD-XML to parse it.

  • ns - Whether to turn the XML namespaces support on.
  • path - Location of the XML file.

Tells VTD-XML to parse the given part of a byte vector.

The parsed slice is not copied, it is merely referenced (borrowed) by the VTD-XML.

  • ns - Whether to turn the XML namespaces support on.

Trait Implementations

impl Drop for VtdGen
[src]

A method called when the value goes out of scope. Read more