pub struct CompactOutput { /* private fields */ }Expand description
An SVRL report as the stylesheet wrote it, kept compactly
(StylesheetReport::svrl).
The serialized result document of
Executable::transform_compact, kept as a
sequence of pieces, each distinct piece stored once. A piece is what the serializer
writes from one tag to the next written in full: an element with its indentation, a
start tag, or text with the end tag that follows.
A compiled Schematron writes the same svrl:fired-rule element, with the same
indentation, each time a rule fires, and the same message for each node an
assertion fails on: on a large document, its SVRL report is mostly copies of a few
hundred pieces, and kept this way takes four bytes per fired rule instead of the
length of the element. The distinct pieces are kept in blocks that are never
reallocated, so that the store does not grow by copying.
Two outputs are equal when their texts are; fmt::Display writes the text and
fmt::Debug shows it as String’s does.
Implementations§
Source§impl CompactOutput
impl CompactOutput
Trait Implementations§
Source§impl Clone for CompactOutput
impl Clone for CompactOutput
Source§fn clone(&self) -> CompactOutput
fn clone(&self) -> CompactOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompactOutput
impl Debug for CompactOutput
Source§impl Default for CompactOutput
impl Default for CompactOutput
Source§fn default() -> CompactOutput
fn default() -> CompactOutput
Source§impl Display for CompactOutput
impl Display for CompactOutput
impl Eq for CompactOutput
Source§impl From<&str> for CompactOutput
impl From<&str> for CompactOutput
Source§fn from(text: &str) -> CompactOutput
fn from(text: &str) -> CompactOutput
The text as a single piece (none for a text of 4 GiB or more, which the store cannot hold).