#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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
The node survives; some of its 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. 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
The node survives; some of its attributes are not written at all.
Trait Implementations§
impl Copy for Fidelity
impl Eq for Fidelity
impl StructuralPartialEq for Fidelity
Auto Trait Implementations§
impl Freeze for Fidelity
impl RefUnwindSafe for Fidelity
impl Send for Fidelity
impl Sync for Fidelity
impl Unpin for Fidelity
impl UnsafeUnpin for Fidelity
impl UnwindSafe for Fidelity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more