#[non_exhaustive]pub enum Warning {
NoSeparator,
AmbiguousSeparator,
UnspacedDashSplit,
AsymmetricDashSplit,
BySplit,
QuotedTitleSplit,
AmbiguousMixCredit,
UnbalancedBrackets,
}Expand description
A warning of the single-track parser: the result is a guess the caller may want to check.
use trackparse::{parse, Warning};
assert_eq!(parse("Just A Title").warnings, [Warning::NoSeparator]);
assert_eq!(parse("Noisia - Stigma (Unbalanced").warnings, [Warning::UnbalancedBrackets]);
assert_eq!(Warning::NoSeparator.as_str(), "noSeparator");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.
NoSeparator
"noSeparator" in the spec and in JSON.
AmbiguousSeparator
"ambiguousSeparator" in the spec and in JSON.
UnspacedDashSplit
"unspacedDashSplit" in the spec and in JSON.
AsymmetricDashSplit
"asymmetricDashSplit" in the spec and in JSON.
BySplit
"bySplit" in the spec and in JSON.
QuotedTitleSplit
"quotedTitleSplit" in the spec and in JSON.
AmbiguousMixCredit
"ambiguousMixCredit" in the spec and in JSON.
UnbalancedBrackets
"unbalancedBrackets" in the spec and in JSON.
Implementations§
Trait Implementations§
impl Copy for Warning
Source§impl<'de> Deserialize<'de> for Warning
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Warning
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(
deserializer: D,
) -> Result<Warning, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D, ) -> Result<Warning, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Forget for Warning
impl Freeze for Warning
impl Move for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnsafeUnpin for Warning
impl UnwindSafe for Warning
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