Skip to main content

TrackAnalyzable

Trait TrackAnalyzable 

Source
pub trait TrackAnalyzable {
    // Required methods
    fn get_artist_name(&self) -> String;
    fn get_track_name(&self) -> String;

    // Provided method
    fn get_track_identifier(&self) -> String { ... }
}
Expand description

Trait for types that can be analyzed as tracks

Required Methods§

Source

fn get_artist_name(&self) -> String

Get the artist name from the track

Source

fn get_track_name(&self) -> String

Get the track name from the track

Provided Methods§

Source

fn get_track_identifier(&self) -> String

Get the full track identifier (usually “artist - track”)

Implementors§