Debian Codegraph @

src/impls/alloc/deque.rs

raw symbols SCIP
1 use craterust-analyzer cargo cc-traits 2.0.0 crate/::{
2 Backrust-analyzer cargo cc-traits 2.0.0 Back#, BackMutrust-analyzer cargo cc-traits 2.0.0 BackMut#, 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#, Frontrust-analyzer cargo cc-traits 2.0.0 Front#, FrontMutrust-analyzer cargo cc-traits 2.0.0 FrontMut#, 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#, 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/::collectionsrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/::VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#;
6
7 impl<T> Collectionrust-analyzer cargo cc-traits 2.0.0 Collection# for VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
8 type Itemrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][Collection]Item# = T;
9 }
10
11 impl<T> CollectionRefrust-analyzer cargo cc-traits 2.0.0 CollectionRef# for VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
12 type ItemRefrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][CollectionRef]ItemRef#<'a> = &'a T where Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<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 VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
18 type ItemMutrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][CollectionMut]ItemMut#<'a> = &'a mut T where Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<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 VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<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 VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<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 VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
32 #[inline(always)]
33 fn with_capacityrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][WithCapacity]with_capacity().(capacity: usize) -> Selfrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][WithCapacity] {
34 VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#::with_capacityrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/impl#[`VecDeque<T>`]with_capacity().(capacity)
35 }
36 }
37
38 impl<T> Lenrust-analyzer cargo cc-traits 2.0.0 Len# for VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
39 #[inline(always)]
40 fn lenrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][Len]len().(&self) -> usize {
41 self.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/impl#[`VecDeque<T, A>`]len().()
42 }
43
44 #[inline(always)]
45 fn is_emptyrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][Len]is_empty().(&self) -> bool {
46 self.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/impl#[`VecDeque<T, A>`]is_empty().()
47 }
48 }
49
50 impl<T> Capacityrust-analyzer cargo cc-traits 2.0.0 Capacity# for VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
51 #[inline(always)]
52 fn capacityrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][Capacity]capacity().(&self) -> usize {
53 self.capacityrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/impl#[`VecDeque<T, A>`]capacity().()
54 }
55 }
56
57 impl<T> Reserverust-analyzer cargo cc-traits 2.0.0 Reserve# for VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
58 #[inline(always)]
59 fn reserverust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][Reserve]reserve().(&mut self, additional: usize) {
60 self.reserverust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/impl#[`VecDeque<T, A>`]reserve().(additional)
61 }
62 }
63
64 impl<T> Frontrust-analyzer cargo cc-traits 2.0.0 Front# for VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
65 #[inline(always)]
66 fn frontrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][Front]front().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&T> {
67 self.frontrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/impl#[`VecDeque<T, A>`]front().()
68 }
69 }
70
71 impl<T> FrontMutrust-analyzer cargo cc-traits 2.0.0 FrontMut# for VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
72 #[inline(always)]
73 fn front_mutrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][FrontMut]front_mut().(&mut self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&mut T> {
74 self.front_mutrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/impl#[`VecDeque<T, A>`]front_mut().()
75 }
76 }
77
78 impl<T> Backrust-analyzer cargo cc-traits 2.0.0 Back# for VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
79 #[inline(always)]
80 fn backrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][Back]back().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&T> {
81 self.backrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/impl#[`VecDeque<T, A>`]back().()
82 }
83 }
84
85 impl<T> BackMutrust-analyzer cargo cc-traits 2.0.0 BackMut# for VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
86 #[inline(always)]
87 fn back_mutrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][BackMut]back_mut().(&mut self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&mut T> {
88 self.back_mutrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/impl#[`VecDeque<T, A>`]back_mut().()
89 }
90 }
91
92 impl<T> PushBackrust-analyzer cargo cc-traits 2.0.0 PushBack# for VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
93 type Outputrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][PushBack]Output# = ();
94
95 #[inline(always)]
96 fn push_backrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][PushBack]push_back().(&mut self, t: T) {
97 self.push_backrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/impl#[`VecDeque<T, A>`]push_back().(t)
98 }
99 }
100
101 impl<T> PopBackrust-analyzer cargo cc-traits 2.0.0 PopBack# for VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
102 #[inline(always)]
103 fn pop_backrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][PopBack]pop_back().(&mut self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<T> {
104 self.pop_backrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/impl#[`VecDeque<T, A>`]pop_back().()
105 }
106 }
107
108 impl<T> Clearrust-analyzer cargo cc-traits 2.0.0 Clear# for VecDequerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/VecDeque#<T> {
109 #[inline(always)]
110 fn clearrust-analyzer cargo cc-traits 2.0.0 impls/alloc/deque/impl#[`VecDeque<T>`][Clear]clear().(&mut self) {
111 self.clearrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/vec_deque/impl#[`VecDeque<T, A>`]clear().()
112 }
113 }