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

Method cmp

src-tauri/types/src/entities.rs:115–127  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

113impl Ord for QueryableAlbum {
114 #[tracing::instrument(level = "debug", skip(self, other))]
115 fn cmp(&self, other: &Self) -> std::cmp::Ordering {
116 let album_name = self
117 .album_name
118 .as_ref()
119 .unwrap_or(&String::new())
120 .to_lowercase();
121 let other_album_name = other
122 .album_name
123 .as_ref()
124 .unwrap_or(&String::new())
125 .to_lowercase();
126 album_name.cmp(&other_album_name)
127 }
128}
129
130impl PartialOrd for QueryableAlbum {

Callers 4

SongListFunction · 0.80
AllPlaylistsFunction · 0.80
partial_cmpMethod · 0.80
get_video_urlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected