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§
Sourcefn get_artist_name(&self) -> String
fn get_artist_name(&self) -> String
Get the artist name from the track
Sourcefn get_track_name(&self) -> String
fn get_track_name(&self) -> String
Get the track name from the track
Provided Methods§
Sourcefn get_track_identifier(&self) -> String
fn get_track_identifier(&self) -> String
Get the full track identifier (usually “artist - track”)