Skip to main content

read_into

Function read_into 

Source
pub fn read_into<R: BufRead>(
    dataset: &mut Dataset,
    input: R,
    source: Option<&str>,
    options: &ReadOptions,
) -> Result<ReadOutcome>
Expand description

Read a CIM/XML document into dataset, merging with what is already loaded.

The document is applied whole once it has been read to its end, so on Err the dataset is unchanged.

ยงErrors

Error::Truncated when the input ends before the document does, Error::Xml when it is not well-formed, under either strictness; Error::NotCimXml when it is not CIM/XML or, strict, names what the schema does not define; Error::InputTooLarge past the budget.