mirror of
https://github.com/Dangoware/dmp-core.git
synced 2025-04-19 13:32:53 -05:00
added `to_songs()
` in ExternalLibrary
This commit is contained in:
parent
594e426a3f
commit
0072963a60
1 changed files with 4 additions and 1 deletions
|
@ -1,9 +1,12 @@
|
|||
use std::path::PathBuf;
|
||||
|
||||
use crate::music_storage::library::Song;
|
||||
|
||||
|
||||
pub trait ExternalLibrary {
|
||||
fn from_file(&mut self, file: &PathBuf) -> Self;
|
||||
fn from_file(file: &PathBuf) -> Self;
|
||||
fn write(&self) {
|
||||
unimplemented!();
|
||||
}
|
||||
fn to_songs(&self) -> Vec<Song>;
|
||||
}
|
Loading…
Reference in a new issue