#[non_exhaustive]pub enum VersionsOption {
All,
None,
}Expand description
Whether format_track_with writes the versions (R11.3).
use trackparse::{format_track_with, parse, FormatOptions, VersionsOption};
let track = parse("Fox Stevenson - Bruises (Magnetude Remix)");
let options = FormatOptions::new().versions(VersionsOption::None);
assert_eq!(format_track_with(&track, &options), "Fox Stevenson - Bruises");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.
Implementations§
Source§impl VersionsOption
impl VersionsOption
Sourcepub const ALL: &'static [VersionsOption]
pub const ALL: &'static [VersionsOption]
Every value, in the spec’s order.
Sourcepub fn from_name(name: &str) -> Option<VersionsOption>
pub fn from_name(name: &str) -> Option<VersionsOption>
The value with that spec name (exact match), or None.
Trait Implementations§
Source§impl Clone for VersionsOption
impl Clone for VersionsOption
impl Copy for VersionsOption
Source§impl Debug for VersionsOption
impl Debug for VersionsOption
Source§impl Default for VersionsOption
impl Default for VersionsOption
Source§impl<'de> Deserialize<'de> for VersionsOption
Available on crate feature serde only.
impl<'de> Deserialize<'de> for VersionsOption
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(
deserializer: D,
) -> Result<VersionsOption, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D, ) -> Result<VersionsOption, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for VersionsOption
impl Display for VersionsOption
impl Eq for VersionsOption
Source§impl FromStr for VersionsOption
impl FromStr for VersionsOption
Source§impl Hash for VersionsOption
impl Hash for VersionsOption
Source§impl PartialEq for VersionsOption
impl PartialEq for VersionsOption
Source§impl Serialize for VersionsOption
Available on crate feature serde only.
impl Serialize for VersionsOption
Available on crate feature
serde only.impl StructuralPartialEq for VersionsOption
Auto Trait Implementations§
impl Forget for VersionsOption
impl Freeze for VersionsOption
impl Move for VersionsOption
impl RefUnwindSafe for VersionsOption
impl Send for VersionsOption
impl Sync for VersionsOption
impl Unpin for VersionsOption
impl UnsafeUnpin for VersionsOption
impl UnwindSafe for VersionsOption
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