We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Ord
PartialOrd
AssetRef
1 parent ef7d5f2 commit 8696cf3Copy full SHA for 8696cf3
1 file changed
src/asset.rs
@@ -187,6 +187,18 @@ impl Hash for AssetRef {
187
}
188
189
190
+impl PartialOrd for AssetRef {
191
+ fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
192
+ Some(self.cmp(other))
193
+ }
194
+}
195
+
196
+impl Ord for AssetRef {
197
+ fn cmp(&self, other: &Self) -> std::cmp::Ordering {
198
+ self.id.unwrap().cmp(&other.id.unwrap())
199
200
201
202
/// A pool of [`Asset`]s
203
pub struct AssetPool {
204
/// The pool of active assets
0 commit comments