MCPcopy Create free account
hub / github.com/Moosync/Moosync / add_to_queue_at_index

Method add_to_queue_at_index

src/store/player_store.rs:221–229  ·  view source on GitHub ↗
(&mut self, songs: Vec<Song>, index: usize)

Source from the content-addressed store, hash-verified

219
220 #[tracing::instrument(level = "debug", skip(self, songs, index))]
221 fn add_to_queue_at_index(&mut self, songs: Vec<Song>, index: usize) {
222 let mut index = index;
223 for song in songs {
224 self.insert_song_at_index(song, index, false);
225 index += 1;
226 }
227
228 self.dump_store(&[DumpType::QueueData, DumpType::SongQueue]);
229 }
230
231 #[tracing::instrument(level = "debug", skip(self, index))]
232 pub fn remove_from_queue(&mut self, index: usize) {

Callers 3

add_to_queueMethod · 0.80
play_now_multipleMethod · 0.80
play_next_multipleMethod · 0.80

Calls 2

insert_song_at_indexMethod · 0.80
dump_storeMethod · 0.80

Tested by

no test coverage detected