#[non_exhaustive]pub enum WarningKind {
LossyDrop,
Approximated,
Unsupported,
}Expand description
Class of information loss in a ConversionWarning.
New variants are appended; existing variants are stable across
minor versions. Marked #[non_exhaustive] so adding a variant
is non-breaking for downstream match arms.
Copy is intentional here because every variant is fieldless,
matching the per-warning struct (ConversionWarning) which
owns the attached message and is therefore not Copy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
LossyDrop
A feature in the source format has no equivalent in the target format and was dropped (e.g. lyrics on a ChordPro→iReal conversion — iReal has no lyrics surface).
Approximated
A feature in the source format was approximated to the nearest equivalent in the target format (e.g. an unusual section label mapped to the closest iReal letter).
Unsupported
A feature in the source format is not yet supported by the
converter, even though the target format could in principle
represent it. Distinct from LossyDrop because resolving
it is a future converter-side change rather than an inherent
format limitation.
Trait Implementations§
Source§impl Clone for WarningKind
impl Clone for WarningKind
Source§fn clone(&self) -> WarningKind
fn clone(&self) -> WarningKind
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 WarningKind
impl Debug for WarningKind
Source§impl PartialEq for WarningKind
impl PartialEq for WarningKind
Source§fn eq(&self, other: &WarningKind) -> bool
fn eq(&self, other: &WarningKind) -> bool
self and other values to be equal, and is used by ==.