| 1 | use craterust-analyzer cargo cc-traits 2.0.0 crate/::{ |
| 2 | Capacityrust-analyzer cargo cc-traits 2.0.0 Capacity#, 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#, GetMutrust-analyzer cargo cc-traits 2.0.0 GetMut#, Iterrust-analyzer cargo cc-traits 2.0.0 Iter#, IterMutrust-analyzer cargo cc-traits 2.0.0 IterMut#, Lenrust-analyzer cargo cc-traits 2.0.0 Len#, |
| 3 | PopBackrust-analyzer cargo cc-traits 2.0.0 PopBack#, PushBackrust-analyzer cargo cc-traits 2.0.0 PushBack#, Removerust-analyzer cargo cc-traits 2.0.0 Remove#, Reserverust-analyzer cargo cc-traits 2.0.0 Reserve#, SimpleCollectionMutrust-analyzer cargo cc-traits 2.0.0 SimpleCollectionMut#, SimpleCollectionRefrust-analyzer cargo cc-traits 2.0.0 SimpleCollectionRef#, WithCapacityrust-analyzer cargo cc-traits 2.0.0 WithCapacity#, |
| 4 | }; |
| 5 | use allocrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc crate/::vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/::Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#; |
| 6 | |
| 7 | impl<T> Collectionrust-analyzer cargo cc-traits 2.0.0 Collection# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 8 | type Itemrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][Collection]Item# = T; |
| 9 | } |
| 10 | |
| 11 | impl<T> CollectionRefrust-analyzer cargo cc-traits 2.0.0 CollectionRef# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 12 | type ItemRefrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][CollectionRef]ItemRef#<'a> = &'a T where Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][CollectionRef]: 'a; |
| 13 | |
| 14 | craterust-analyzer cargo cc-traits 2.0.0 crate/::covariant_item_refrust-analyzer cargo cc-traits 2.0.0 macros/covariant_item_ref!!(); |
| 15 | } |
| 16 | |
| 17 | impl<T> CollectionMutrust-analyzer cargo cc-traits 2.0.0 CollectionMut# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 18 | type ItemMutrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][CollectionMut]ItemMut#<'a> = &'a mut T where Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][CollectionMut]: 'a; |
| 19 | |
| 20 | craterust-analyzer cargo cc-traits 2.0.0 crate/::covariant_item_mutrust-analyzer cargo cc-traits 2.0.0 macros/covariant_item_mut!!(); |
| 21 | } |
| 22 | |
| 23 | impl<T> SimpleCollectionRefrust-analyzer cargo cc-traits 2.0.0 SimpleCollectionRef# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 24 | craterust-analyzer cargo cc-traits 2.0.0 crate/::simple_collection_refrust-analyzer cargo cc-traits 2.0.0 macros/simple_collection_ref!!(); |
| 25 | } |
| 26 | |
| 27 | impl<T> SimpleCollectionMutrust-analyzer cargo cc-traits 2.0.0 SimpleCollectionMut# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 28 | craterust-analyzer cargo cc-traits 2.0.0 crate/::simple_collection_mutrust-analyzer cargo cc-traits 2.0.0 macros/simple_collection_mut!!(); |
| 29 | } |
| 30 | |
| 31 | impl<T> WithCapacityrust-analyzer cargo cc-traits 2.0.0 WithCapacity# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 32 | #[inline(always)] |
| 33 | fn with_capacityrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][WithCapacity]with_capacity().(capacity: usize) -> Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][WithCapacity] { |
| 34 | Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::with_capacityrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`]with_capacity().(capacity) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | impl<T> Lenrust-analyzer cargo cc-traits 2.0.0 Len# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 39 | #[inline(always)] |
| 40 | fn lenrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][Len]len().(&self) -> usize { |
| 41 | self.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() |
| 42 | } |
| 43 | |
| 44 | #[inline(always)] |
| 45 | fn is_emptyrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][Len]is_empty().(&self) -> bool { |
| 46 | self.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | impl<T> Getrust-analyzer cargo cc-traits 2.0.0 Get#<usize> for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 51 | #[inline(always)] |
| 52 | fn getrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][`Get<usize>`]get().(&self, index: usize) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&T> { |
| 53 | self.as_slicerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]as_slice().().getrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]get().(index) |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | impl<T> GetMutrust-analyzer cargo cc-traits 2.0.0 GetMut#<usize> for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 58 | #[inline(always)] |
| 59 | fn get_mutrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][`GetMut<usize>`]get_mut().(&mut self, index: usize) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&mut T> { |
| 60 | self.as_mut_slicerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]as_mut_slice().().get_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]get_mut().(index) |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | impl<T> Capacityrust-analyzer cargo cc-traits 2.0.0 Capacity# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 65 | #[inline(always)] |
| 66 | fn capacityrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][Capacity]capacity().(&self) -> usize { |
| 67 | self.capacityrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]capacity().() |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | impl<T> Reserverust-analyzer cargo cc-traits 2.0.0 Reserve# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 72 | #[inline(always)] |
| 73 | fn reserverust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][Reserve]reserve().(&mut self, additional: usize) { |
| 74 | self.reserverust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]reserve().(additional) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | impl<T> PushBackrust-analyzer cargo cc-traits 2.0.0 PushBack# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 79 | type Outputrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][PushBack]Output# = (); |
| 80 | |
| 81 | #[inline(always)] |
| 82 | fn push_backrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][PushBack]push_back().(&mut self, t: T) { |
| 83 | self.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]push().(t) |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | impl<T> PopBackrust-analyzer cargo cc-traits 2.0.0 PopBack# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 88 | #[inline(always)] |
| 89 | fn pop_backrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][PopBack]pop_back().(&mut self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<T> { |
| 90 | self.poprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]pop().() |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | impl<T> Removerust-analyzer cargo cc-traits 2.0.0 Remove#<usize> for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 95 | #[inline(always)] |
| 96 | fn removerust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][`Remove<usize>`]remove().(&mut self, index: usize) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<T> { |
| 97 | if index rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt().self.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() { |
| 98 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(self.removerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]remove().(index)) |
| 99 | } else { |
| 100 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | impl<T> Clearrust-analyzer cargo cc-traits 2.0.0 Clear# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 106 | #[inline(always)] |
| 107 | fn clearrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][Clear]clear().(&mut self) { |
| 108 | self.clearrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]clear().() |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | impl<T> Iterrust-analyzer cargo cc-traits 2.0.0 Iter# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 113 | type Iterrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][Iter]Iter#<'a> = corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::slicerust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/::Iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/Iter#<'a, T> where Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][Iter]: 'a; |
| 114 | |
| 115 | #[inline(always)] |
| 116 | fn iterrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][Iter]iter().(&self) -> Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][Iter]::Iterrust-analyzer cargo cc-traits 2.0.0 Iter#Iter#<'_> { |
| 117 | self.as_slicerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]as_slice().().iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | impl<T> IterMutrust-analyzer cargo cc-traits 2.0.0 IterMut# for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 122 | type IterMutrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][IterMut]IterMut#<'a> = corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::slicerust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/::IterMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/IterMut#<'a, T> where Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][IterMut]: 'a; |
| 123 | |
| 124 | #[inline(always)] |
| 125 | fn iter_mutrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][IterMut]iter_mut().(&mut self) -> Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/vec/impl#[`Vec<T>`][IterMut]::IterMutrust-analyzer cargo cc-traits 2.0.0 IterMut#IterMut#<'_> { |
| 126 | self.as_mut_slicerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]as_mut_slice().().iter_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter_mut().() |
| 127 | } |
| 128 | } |