Debian Codegraph @

src/impls/smallvec.rs

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
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 smallvecrust-analyzer cargo smallvec 1.6.1 crate/::{Arrayrust-analyzer cargo smallvec 1.6.1 Array#, SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#};
6
7 impl<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> Collectionrust-analyzer cargo cc-traits 2.0.0 Collection# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
8 type Itemrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][Collection]Item# = A::Itemrust-analyzer cargo smallvec 1.6.1 Array#Item#;
9 }
10
11 impl<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> CollectionRefrust-analyzer cargo cc-traits 2.0.0 CollectionRef# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
12 type ItemRefrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][CollectionRef]ItemRef#<'a> = &'a A::Itemrust-analyzer cargo smallvec 1.6.1 Array#Item# where Selfrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][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<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> CollectionMutrust-analyzer cargo cc-traits 2.0.0 CollectionMut# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
18 type ItemMutrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][CollectionMut]ItemMut#<'a> = &'a mut A::Itemrust-analyzer cargo smallvec 1.6.1 Array#Item# where Selfrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][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<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> SimpleCollectionRefrust-analyzer cargo cc-traits 2.0.0 SimpleCollectionRef# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
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<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> SimpleCollectionMutrust-analyzer cargo cc-traits 2.0.0 SimpleCollectionMut# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
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<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> WithCapacityrust-analyzer cargo cc-traits 2.0.0 WithCapacity# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
32 #[inline(always)]
33 fn with_capacityrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][WithCapacity]with_capacity().(capacity: usize) -> Selfrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][WithCapacity] {
34 SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#::with_capacityrust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<A>`]with_capacity().(capacity)
35 }
36 }
37
38 impl<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> Lenrust-analyzer cargo cc-traits 2.0.0 Len# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
39 #[inline(always)]
40 fn lenrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][Len]len().(&self) -> usize {
41 self.lenrust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<A>`]len().()
42 }
43
44 #[inline(always)]
45 fn is_emptyrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][Len]is_empty().(&self) -> bool {
46 self.is_emptyrust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<A>`]is_empty().()
47 }
48 }
49
50 impl<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> Capacityrust-analyzer cargo cc-traits 2.0.0 Capacity# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
51 #[inline(always)]
52 fn capacityrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][Capacity]capacity().(&self) -> usize {
53 self.capacityrust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<A>`]capacity().()
54 }
55 }
56
57 impl<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> Reserverust-analyzer cargo cc-traits 2.0.0 Reserve# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
58 #[inline(always)]
59 fn reserverust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][Reserve]reserve().(&mut self, additional: usize) {
60 self.reserverust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<A>`]reserve().(additional)
61 }
62 }
63
64 impl<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> Getrust-analyzer cargo cc-traits 2.0.0 Get#<usize> for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
65 #[inline(always)]
66 fn getrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][`Get<usize>`]get().(&self, index: usize) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&A::Itemrust-analyzer cargo smallvec 1.6.1 Array#Item#> {
67 self.as_slicerust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<A>`]as_slice().().getrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]get().(index)
68 }
69 }
70
71 impl<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> GetMutrust-analyzer cargo cc-traits 2.0.0 GetMut#<usize> for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
72 #[inline(always)]
73 fn get_mutrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][`GetMut<usize>`]get_mut().(&mut self, index: usize) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&mut A::Itemrust-analyzer cargo smallvec 1.6.1 Array#Item#> {
74 self.as_mut_slicerust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<A>`]as_mut_slice().().get_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]get_mut().(index)
75 }
76 }
77
78 impl<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> PushBackrust-analyzer cargo cc-traits 2.0.0 PushBack# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
79 type Outputrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][PushBack]Output# = ();
80
81 #[inline(always)]
82 fn push_backrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][PushBack]push_back().(&mut self, t: A::Itemrust-analyzer cargo smallvec 1.6.1 Array#Item#) {
83 self.pushrust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<A>`]push().(t)
84 }
85 }
86
87 impl<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> PopBackrust-analyzer cargo cc-traits 2.0.0 PopBack# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
88 #[inline(always)]
89 fn pop_backrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][PopBack]pop_back().(&mut self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<A::Itemrust-analyzer cargo smallvec 1.6.1 Array#Item#> {
90 self.poprust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<A>`]pop().()
91 }
92 }
93
94 impl<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> Removerust-analyzer cargo cc-traits 2.0.0 Remove#<usize> for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
95 #[inline(always)]
96 fn removerust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][`Remove<usize>`]remove().(&mut self, index: usize) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<A::Itemrust-analyzer cargo smallvec 1.6.1 Array#Item#> {
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 smallvec 1.6.1 impl#[`SmallVec<A>`]len().() {
98 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(self.removerust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<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<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> Clearrust-analyzer cargo cc-traits 2.0.0 Clear# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
106 #[inline(always)]
107 fn clearrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][Clear]clear().(&mut self) {
108 self.clearrust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<A>`]clear().()
109 }
110 }
111
112 impl<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> Iterrust-analyzer cargo cc-traits 2.0.0 Iter# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
•113 type Iterrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][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, A::Itemrust-analyzer cargo smallvec 1.6.1 Array#Item#> where Selfrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][Iter]: 'a;
114
115 #[inline(always)]
116 fn iterrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][Iter]iter().(&self) -> Selfrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][Iter]::Iterrust-analyzer cargo cc-traits 2.0.0 Iter#Iter#<'_> {
117 self.as_slicerust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<A>`]as_slice().().iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().()
118 }
119 }
120
121 impl<A: Arrayrust-analyzer cargo smallvec 1.6.1 Array#> IterMutrust-analyzer cargo cc-traits 2.0.0 IterMut# for SmallVecrust-analyzer cargo smallvec 1.6.1 SmallVec#<A> {
•122 type IterMutrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][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, A::Itemrust-analyzer cargo smallvec 1.6.1 Array#Item#> where Selfrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][IterMut]: 'a;
123
124 #[inline(always)]
125 fn iter_mutrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][IterMut]iter_mut().(&mut self) -> Selfrust-analyzer cargo cc-traits 2.0.0 impls/smallvec/impl#[`SmallVec<A>`][IterMut]::IterMutrust-analyzer cargo cc-traits 2.0.0 IterMut#IterMut#<'_> {
126 self.as_mut_slicerust-analyzer cargo smallvec 1.6.1 impl#[`SmallVec<A>`]as_mut_slice().().iter_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter_mut().()
127 }
128 }