| 1 | use craterust-analyzer cargo cc-traits 2.0.0 crate/::{ |
| 2 | Clearrust-analyzer cargo cc-traits 2.0.0 Clear#, Collectionrust-analyzer cargo cc-traits 2.0.0 Collection#, CollectionMutrust-analyzer cargo cc-traits 2.0.0 CollectionMut#, CollectionRefrust-analyzer cargo cc-traits 2.0.0 CollectionRef#, Getrust-analyzer cargo cc-traits 2.0.0 Get#, GetKeyValuerust-analyzer cargo cc-traits 2.0.0 GetKeyValue#, GetMutrust-analyzer cargo cc-traits 2.0.0 GetMut#, Iterrust-analyzer cargo cc-traits 2.0.0 Iter#, Keyedrust-analyzer cargo cc-traits 2.0.0 Keyed#, |
| 3 | KeyedRefrust-analyzer cargo cc-traits 2.0.0 KeyedRef#, Lenrust-analyzer cargo cc-traits 2.0.0 Len#, MapInsertrust-analyzer cargo cc-traits 2.0.0 MapInsert#, MapIterrust-analyzer cargo cc-traits 2.0.0 MapIter#, MapIterMutrust-analyzer cargo cc-traits 2.0.0 MapIterMut#, Removerust-analyzer cargo cc-traits 2.0.0 Remove#, SimpleCollectionMutrust-analyzer cargo cc-traits 2.0.0 SimpleCollectionMut#, |
| 4 | SimpleCollectionRefrust-analyzer cargo cc-traits 2.0.0 SimpleCollectionRef#, SimpleKeyedRefrust-analyzer cargo cc-traits 2.0.0 SimpleKeyedRef#, |
| 5 | }; |
| 6 | use allocrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc crate/::collectionsrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/::BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#; |
| 7 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core borrow/::Borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core borrow/Borrow#; |
| 8 | |
| 9 | impl<K, V> Collectionrust-analyzer cargo cc-traits 2.0.0 Collection# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 10 | type Itemrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][Collection]Item# = V; |
| 11 | } |
| 12 | |
| 13 | impl<K, V> CollectionRefrust-analyzer cargo cc-traits 2.0.0 CollectionRef# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 14 | type ItemRefrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][CollectionRef]ItemRef#<'a> = &'a V where Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][CollectionRef]: 'a; |
| 15 | |
| 16 | craterust-analyzer cargo cc-traits 2.0.0 crate/::covariant_item_refrust-analyzer cargo cc-traits 2.0.0 macros/covariant_item_ref!!(); |
| 17 | } |
| 18 | |
| 19 | impl<K, V> CollectionMutrust-analyzer cargo cc-traits 2.0.0 CollectionMut# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 20 | type ItemMutrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][CollectionMut]ItemMut#<'a> = &'a mut V where Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][CollectionMut]: 'a; |
| 21 | |
| 22 | craterust-analyzer cargo cc-traits 2.0.0 crate/::covariant_item_mutrust-analyzer cargo cc-traits 2.0.0 macros/covariant_item_mut!!(); |
| 23 | } |
| 24 | |
| 25 | impl<K, V> SimpleCollectionRefrust-analyzer cargo cc-traits 2.0.0 SimpleCollectionRef# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 26 | craterust-analyzer cargo cc-traits 2.0.0 crate/::simple_collection_refrust-analyzer cargo cc-traits 2.0.0 macros/simple_collection_ref!!(); |
| 27 | } |
| 28 | |
| 29 | impl<K, V> SimpleCollectionMutrust-analyzer cargo cc-traits 2.0.0 SimpleCollectionMut# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 30 | craterust-analyzer cargo cc-traits 2.0.0 crate/::simple_collection_mutrust-analyzer cargo cc-traits 2.0.0 macros/simple_collection_mut!!(); |
| 31 | } |
| 32 | |
| 33 | impl<K, V> Keyedrust-analyzer cargo cc-traits 2.0.0 Keyed# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 34 | type Keyrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][Keyed]Key# = K; |
| 35 | } |
| 36 | |
| 37 | impl<K, V> KeyedRefrust-analyzer cargo cc-traits 2.0.0 KeyedRef# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 38 | type KeyRefrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][KeyedRef]KeyRef#<'a> = &'a K where Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][KeyedRef]: 'a; |
| 39 | |
| 40 | craterust-analyzer cargo cc-traits 2.0.0 crate/::covariant_key_refrust-analyzer cargo cc-traits 2.0.0 macros/covariant_key_ref!!(); |
| 41 | } |
| 42 | |
| 43 | impl<K, V> SimpleKeyedRefrust-analyzer cargo cc-traits 2.0.0 SimpleKeyedRef# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 44 | craterust-analyzer cargo cc-traits 2.0.0 crate/::simple_keyed_refrust-analyzer cargo cc-traits 2.0.0 macros/simple_keyed_ref!!(); |
| 45 | } |
| 46 | |
| 47 | impl<K, V> Lenrust-analyzer cargo cc-traits 2.0.0 Len# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 48 | #[inline(always)] |
| 49 | fn lenrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][Len]len().(&self) -> usize { |
| 50 | self.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]len().() |
| 51 | } |
| 52 | |
| 53 | #[inline(always)] |
| 54 | fn is_emptyrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][Len]is_empty().(&self) -> bool { |
| 55 | self.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]is_empty().() |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | impl<'a, Q, K: Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#, V> Getrust-analyzer cargo cc-traits 2.0.0 Get#<&'a Q> for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> |
| 60 | where |
| 61 | K: Borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core borrow/Borrow#<Q>, |
| 62 | Q: Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord# + ?Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#, |
| 63 | { |
| 64 | #[inline(always)] |
| 65 | fn getrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][`Get<&'a Q>`]get().(&self, key: &'a Q) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&V> { |
| 66 | self.getrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]get().(key) |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | impl<'a, Q, K: Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#, V> GetKeyValuerust-analyzer cargo cc-traits 2.0.0 GetKeyValue#<&'a Q> for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> |
| 71 | where |
| 72 | K: Borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core borrow/Borrow#<Q>, |
| 73 | Q: Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord# + ?Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#, |
| 74 | { |
| 75 | #[inline(always)] |
| 76 | fn get_key_valuerust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][`GetKeyValue<&'a Q>`]get_key_value().(&self, key: &'a Q) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<(&K, &V)> { |
| 77 | self.get_key_valuerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]get_key_value().(key) |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | impl<'a, Q, K: Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#, V> GetMutrust-analyzer cargo cc-traits 2.0.0 GetMut#<&'a Q> for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> |
| 82 | where |
| 83 | K: Borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core borrow/Borrow#<Q>, |
| 84 | Q: Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord# + ?Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#, |
| 85 | { |
| 86 | #[inline(always)] |
| 87 | fn get_mutrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][`GetMut<&'a Q>`]get_mut().(&mut self, key: &'a Q) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&mut V> { |
| 88 | self.get_mutrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]get_mut().(key) |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | impl<K: Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#, V> MapInsertrust-analyzer cargo cc-traits 2.0.0 MapInsert#<K> for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 93 | type Outputrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][`MapInsert<K>`]Output# = Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<V>; |
| 94 | |
| 95 | #[inline(always)] |
| 96 | fn insertrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][`MapInsert<K>`]insert().(&mut self, key: K, value: V) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<V> { |
| 97 | self.insertrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]insert().(key, value) |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | impl<'a, Q, K: Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#, V> Removerust-analyzer cargo cc-traits 2.0.0 Remove#<&'a Q> for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> |
| 102 | where |
| 103 | K: Borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core borrow/Borrow#<Q>, |
| 104 | Q: Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord# + ?Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#, |
| 105 | { |
| 106 | #[inline(always)] |
| 107 | fn removerust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][`Remove<&'a Q>`]remove().(&mut self, key: &'a Q) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<V> { |
| 108 | self.removerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]remove().(key) |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | impl<K: Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#, V> Clearrust-analyzer cargo cc-traits 2.0.0 Clear# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 113 | #[inline(always)] |
| 114 | fn clearrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][Clear]clear().(&mut self) { |
| 115 | self.clearrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]clear().() |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | impl<K, V> Iterrust-analyzer cargo cc-traits 2.0.0 Iter# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 120 | type Iterrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][Iter]Iter#<'a> = allocrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc crate/::collectionsrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/::btree_maprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree_map/::Valuesrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/Values#<'a, K, V> where Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][Iter]: 'a; |
| 121 | |
| 122 | #[inline(always)] |
| 123 | fn iterrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][Iter]iter().(&self) -> Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][Iter]::Iterrust-analyzer cargo cc-traits 2.0.0 Iter#Iter#<'_> { |
| 124 | self.valuesrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]values().() |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | impl<K, V> MapIterrust-analyzer cargo cc-traits 2.0.0 MapIter# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 129 | type Iterrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][MapIter]Iter#<'a> = allocrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc crate/::collectionsrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/::btree_maprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree_map/::Iterrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/Iter#<'a, K, V> where Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][MapIter]: 'a; |
| 130 | |
| 131 | #[inline(always)] |
| 132 | fn iterrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][MapIter]iter().(&self) -> Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][MapIter]::Iterrust-analyzer cargo cc-traits 2.0.0 MapIter#Iter#<'_> { |
| 133 | self.iterrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]iter().() |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | impl<K, V> MapIterMutrust-analyzer cargo cc-traits 2.0.0 MapIterMut# for BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<K, V> { |
| 138 | type IterMutrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][MapIterMut]IterMut#<'a> = allocrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc crate/::collectionsrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/::btree_maprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree_map/::IterMutrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/IterMut#<'a, K, V> where Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][MapIterMut]: 'a; |
| 139 | |
| 140 | #[inline(always)] |
| 141 | fn iter_mutrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][MapIterMut]iter_mut().(&mut self) -> Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/btreemap/impl#[`BTreeMap<K, V>`][MapIterMut]::IterMutrust-analyzer cargo cc-traits 2.0.0 MapIterMut#IterMut#<'_> { |
| 142 | self.iter_mutrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]iter_mut().() |
| 143 | } |
| 144 | } |