mirror of
https://github.com/Dangoware/dango-music-player.git
synced 2025-04-19 10:02: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 std::path::PathBuf;
|
||||||
|
|
||||||
|
use crate::music_storage::library::Song;
|
||||||
|
|
||||||
|
|
||||||
pub trait ExternalLibrary {
|
pub trait ExternalLibrary {
|
||||||
fn from_file(&mut self, file: &PathBuf) -> Self;
|
fn from_file(file: &PathBuf) -> Self;
|
||||||
fn write(&self) {
|
fn write(&self) {
|
||||||
unimplemented!();
|
unimplemented!();
|
||||||
}
|
}
|
||||||
|
fn to_songs(&self) -> Vec<Song>;
|
||||||
}
|
}
|
Loading…
Reference in a new issue