Struct melody::Playlist

source ·
pub struct Playlist {
    pub tracks: Vec<Song>,
}
Expand description

Collection of Songs

Fields

tracks: Vec<Song>

List of songs in the playlist

Implementations

Create a playlist from a directory will walk through the directory and collect the songs it can process

Returns if the playlist is currently empty

Takes FnMut(Song) and then maps & filters each song based on the functions result

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.