[−][src]Struct melody::Playlist
Collection of Songs
Fields
tracks: Vec<Song>
List of songs in the playlist
Methods
impl Playlist
[src]
pub fn from_dir(path: PathBuf) -> Option<Self>
[src]
Create a playlist from a directory will walk through the directory and collect the songs it can process
pub fn is_empty(&self) -> bool
[src]
Returns if the playlist is currently empty
pub fn filter_map(&mut self, f: impl FnMut(Song) -> Option<Song>)
[src]
Takes FnMut(Song)
and then maps & filters each song based on
the functions result
Trait Implementations
impl From<Vec<Song>> for Playlist
[src]
impl IntoIterator for Playlist
[src]
type Item = Song
The type of the elements being iterated over.
type IntoIter = MinimalMusicPlayer
Which kind of iterator are we turning this into?
ⓘImportant traits for MinimalMusicPlayerfn into_iter(self) -> MinimalMusicPlayer
[src]
ⓘImportant traits for MinimalMusicPlayer
impl Debug for Playlist
[src]
impl Display for Playlist
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,