Skip to main content

format_track_with

Function format_track_with 

Source
pub fn format_track_with(track: &ParsedTrack, options: &FormatOptions) -> String
Expand description

Render a parsed track back to a string (R11).

use trackparse::{format_track_with, parse, FeatPlacement, FormatOptions};

let track = parse("Sub Focus - Out the Blue ft. Alice Gold");
let options = FormatOptions::new().feat(FeatPlacement::Artist);
assert_eq!(format_track_with(&track, &options), "Sub Focus ft. Alice Gold - Out the Blue");