mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 22:18:33 +00:00
Remove unnecessary impl_reflect_for_btree_map
macro (#12146)
# Objective To remove the `impl_reflect_for_btree_map` macro as per #12140. ## Solution Replaced the `impl_reflect_for_btree_map` macro.
This commit is contained in:
parent
f7f7e326e5
commit
fd0f1a37ad
1 changed files with 195 additions and 200 deletions
|
@ -622,9 +622,7 @@ impl_type_path!(::bevy_utils::hashbrown::hash_map::DefaultHashBuilder);
|
|||
impl_type_path!(::bevy_utils::NoOpHash);
|
||||
impl_type_path!(::bevy_utils::hashbrown::HashMap<K, V, S>);
|
||||
|
||||
macro_rules! impl_reflect_for_btree_map {
|
||||
($ty:path) => {
|
||||
impl<K, V> Map for $ty
|
||||
impl<K, V> Map for ::std::collections::BTreeMap<K, V>
|
||||
where
|
||||
K: FromReflect + TypePath + Eq + Ord,
|
||||
V: FromReflect + TypePath,
|
||||
|
@ -720,7 +718,7 @@ macro_rules! impl_reflect_for_btree_map {
|
|||
}
|
||||
}
|
||||
|
||||
impl<K, V> Reflect for $ty
|
||||
impl<K, V> Reflect for ::std::collections::BTreeMap<K, V>
|
||||
where
|
||||
K: FromReflect + TypePath + Eq + Ord,
|
||||
V: FromReflect + TypePath,
|
||||
|
@ -788,7 +786,7 @@ macro_rules! impl_reflect_for_btree_map {
|
|||
}
|
||||
}
|
||||
|
||||
impl<K, V> Typed for $ty
|
||||
impl<K, V> Typed for ::std::collections::BTreeMap<K, V>
|
||||
where
|
||||
K: FromReflect + TypePath + Eq + Ord,
|
||||
V: FromReflect + TypePath,
|
||||
|
@ -799,7 +797,7 @@ macro_rules! impl_reflect_for_btree_map {
|
|||
}
|
||||
}
|
||||
|
||||
impl<K, V> GetTypeRegistration for $ty
|
||||
impl<K, V> GetTypeRegistration for ::std::collections::BTreeMap<K, V>
|
||||
where
|
||||
K: FromReflect + TypePath + Eq + Ord,
|
||||
V: FromReflect + TypePath,
|
||||
|
@ -811,7 +809,7 @@ macro_rules! impl_reflect_for_btree_map {
|
|||
}
|
||||
}
|
||||
|
||||
impl<K, V> FromReflect for $ty
|
||||
impl<K, V> FromReflect for ::std::collections::BTreeMap<K, V>
|
||||
where
|
||||
K: FromReflect + TypePath + Eq + Ord,
|
||||
V: FromReflect + TypePath,
|
||||
|
@ -830,10 +828,7 @@ macro_rules! impl_reflect_for_btree_map {
|
|||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
impl_reflect_for_btree_map!(::std::collections::BTreeMap<K, V>);
|
||||
impl_type_path!(::std::collections::BTreeMap<K, V>);
|
||||
|
||||
impl<T: Reflect + TypePath, const N: usize> Array for [T; N] {
|
||||
|
|
Loading…
Add table
Reference in a new issue