Trait Indexable

Source
pub trait Indexable {
    // Required methods
    fn meta_file(&self) -> Option<&str>;
    fn meta_title(&self) -> Option<&str>;
    fn meta_album(&self) -> Option<&str>;
    fn meta_artist(&self) -> Option<&str>;
    fn meta_genre(&self) -> Option<&str>;
    fn meta_duration(&self) -> Duration;
}
Expand description

Defined for types which could be indexed. Was made to allow generalization of indexing/search functions.

the required functions are generally the metadata you would find in an mp3 file.

Required Methods§

Implementors§