added `to_songs()` in ExternalLibrary

This commit is contained in:
MrDulfin 2023-12-10 00:43:39 -05:00
parent 594e426a3f
commit 0072963a60

View file

@ -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>;
}