#[non_exhaustive]pub enum Fidelity {
Degraded,
Dropped,
AttrsDegraded,
AttrsDropped,
}Expand description
How much of a node survives a conversion.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Degraded
Something is emitted, but the target’s parser reads it back as a DIFFERENT kind. The content survives; its meaning does not.
Dropped
Nothing is emitted at all: the node and its subtree leave no trace.
AttrsDegraded
Some of the node’s attributes are written where the target’s
parser does not read them back as that node’s — djot spells a
heading’s on its text, AsciiDoc moves a section title’s onto the
section. Independent of the node’s own answer: a node that degrades
and still has its attributes written — Markdown’s <div lang=…> for
a section it cannot spell — is reported twice at the same path,
Degraded and then this. Which keys is not carried across the C boundary: the node at
Warning::path has them, and a consumer that wants the list reads
them from the tree.
AttrsDropped
Some of the node’s attributes are not written at all. Never reported
beside Dropped: nothing of a dropped node is
written, so that one variant is the whole answer.