</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.capacity"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#99">source</a><h4class="code-header">pub const fn <ahref="#method.capacity"class="fn">capacity</a>(&self) -> usize</h4></section></summary><divclass="docblock"><p>Returns the maximum number of elements the deque can hold.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.len"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#104">source</a><h4class="code-header">pub const fn <ahref="#method.len"class="fn">len</a>(&self) -> usize</h4></section></summary><divclass="docblock"><p>Returns the number of elements currently in the deque.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.clear"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#115">source</a><h4class="code-header">pub fn <ahref="#method.clear"class="fn">clear</a>(&mut self)</h4></section></summary><divclass="docblock"><p>Clears the deque, removing all values.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_empty"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#134">source</a><h4class="code-header">pub fn <ahref="#method.is_empty"class="fn">is_empty</a>(&self) -> bool</h4></section></summary><divclass="docblock"><p>Returns whether the deque is empty.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_full"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#139">source</a><h4class="code-header">pub fn <ahref="#method.is_full"class="fn">is_full</a>(&self) -> bool</h4></section></summary><divclass="docblock"><p>Returns whether the deque is full (i.e. if <code>len() == capacity()</code>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.as_slices"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#144">source</a><h4class="code-header">pub fn <ahref="#method.as_slices"class="fn">as_slices</a>(&self) -> (&[T], &[T])</h4></section></summary><divclass="docblock"><p>Returns a pair of slices which contain, in order, the contents of the <code>Deque</code>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.as_mut_slices"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#170">source</a><h4class="code-header">pub fn <ahref="#method.as_mut_slices"class="fn">as_mut_slices</a>(&mut self) -> (&mut [T], &mut [T])</h4></section></summary><divclass="docblock"><p>Returns a pair of mutable slices which contain, in order, the contents of the <code>Deque</code>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.front"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#195">source</a><h4class="code-header">pub fn <ahref="#method.front"class="fn">front</a>(&self) -> Option<&T></h4></section></summary><divclass="docblock"><p>Provides a reference to the front element, or None if the <code>Deque</code> is empty.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.front_mut"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#204">source</a><h4class="code-header">pub fn <ahref="#method.front_mut"class="fn">front_mut</a>(&mut self) -> Option<&mut T></h4></section></summary><divclass="docblock"><p>Provides a mutable reference to the front element, or None if the <code>Deque</code> is empty.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.back"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#213">source</a><h4class="code-header">pub fn <ahref="#method.back"class="fn">back</a>(&self) -> Option<&T></h4></section></summary><divclass="docblock"><p>Provides a reference to the back element, or None if the <code>Deque</code> is empty.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.back_mut"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#223">source</a><h4class="code-header">pub fn <ahref="#method.back_mut"class="fn">back_mut</a>(&mut self) -> Option<&mut T></h4></section></summary><divclass="docblock"><p>Provides a mutable reference to the back element, or None if the <code>Deque</code> is empty.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.pop_front"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#233">source</a><h4class="code-header">pub fn <ahref="#method.pop_front"class="fn">pop_front</a>(&mut self) -> Option<T></h4></section></summary><divclass="docblock"><p>Removes the item from the front of the deque and returns it, or <code>None</code> if it’s empty</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.pop_back"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#242">source</a><h4class="code-header">pub fn <ahref="#method.pop_back"class="fn">pop_back</a>(&mut self) -> Option<T></h4></section></summary><divclass="docblock"><p>Removes the item from the back of the deque and returns it, or <code>None</code> if it’s empty</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.push_front"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#253">source</a><h4class="code-header">pub fn <ahref="#method.push_front"class="fn">push_front</a>(&mut self, item: T) -> Result<(), T></h4></section></summary><divclass="docblock"><p>Appends an <code>item</code> to the front of the deque</p>
<p>Returns back the <code>item</code> if the deque is full</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.push_back"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#265">source</a><h4class="code-header">pub fn <ahref="#method.push_back"class="fn">push_back</a>(&mut self, item: T) -> Result<(), T></h4></section></summary><divclass="docblock"><p>Appends an <code>item</code> to the back of the deque</p>
<p>Returns back the <code>item</code> if the deque is full</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.pop_front_unchecked"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#280">source</a><h4class="code-header">pub unsafe fn <ahref="#method.pop_front_unchecked"class="fn">pop_front_unchecked</a>(&mut self) -> T</h4></section></summary><divclass="docblock"><p>Removes an item from the front of the deque and returns it, without checking that the deque
is not empty</p>
<h5id="safety"><ahref="#safety">Safety</a></h5>
<p>It’s undefined behavior to call this on an empty deque</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.pop_back_unchecked"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#295">source</a><h4class="code-header">pub unsafe fn <ahref="#method.pop_back_unchecked"class="fn">pop_back_unchecked</a>(&mut self) -> T</h4></section></summary><divclass="docblock"><p>Removes an item from the back of the deque and returns it, without checking that the deque
<p>It’s undefined behavior to call this on an empty deque</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.push_front_unchecked"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#308">source</a><h4class="code-header">pub unsafe fn <ahref="#method.push_front_unchecked"class="fn">push_front_unchecked</a>(&mut self, item: T)</h4></section></summary><divclass="docblock"><p>Appends an <code>item</code> to the front of the deque</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.push_back_unchecked"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#326">source</a><h4class="code-header">pub unsafe fn <ahref="#method.push_back_unchecked"class="fn">push_back_unchecked</a>(&mut self, item: T)</h4></section></summary><divclass="docblock"><p>Appends an <code>item</code> to the back of the deque</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.iter"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#339">source</a><h4class="code-header">pub fn <ahref="#method.iter"class="fn">iter</a>(&self) -> Iter<'_, T, N></h4></section></summary><divclass="docblock"><p>Returns an iterator over the deque.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.iter_mut"class="method"><aclass="src rightside"href="../../src/heapless/deque.rs.html#351">source</a><h4class="code-header">pub fn <ahref="#method.iter_mut"class="fn">iter_mut</a>(&mut self) -> IterMut<'_, T, N></h4></section></summary><divclass="docblock"><p>Returns an iterator that allows modifying each value.</p>
T: Debug,</span></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt"class="method trait-impl"><aclass="src rightside"href="../../src/heapless/deque.rs.html#380">source</a><ahref="#method.fmt"class="anchor">§</a><h4class="code-header">fn <aclass="fn">fmt</a>(&self, f: &mut Formatter<'_>) -> Result<(), Error></h4></section></summary><divclass='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Default-for-Deque%3CT,+N%3E"class="impl"><aclass="src rightside"href="../../src/heapless/deque.rs.html#365">source</a><ahref="#impl-Default-for-Deque%3CT,+N%3E"class="anchor">§</a><h3class="code-header">impl<T, const N: usize> Default for <aclass="struct"href="struct.Deque.html"title="struct arduboy_rust::heapless::Deque">Deque</a><T, N></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.default"class="method trait-impl"><aclass="src rightside"href="../../src/heapless/deque.rs.html#366">source</a><ahref="#method.default"class="anchor">§</a><h4class="code-header">fn <aclass="fn">default</a>() -><aclass="struct"href="struct.Deque.html"title="struct arduboy_rust::heapless::Deque">Deque</a><T, N></h4></section></summary><divclass='docblock'>Returns the “default value” for a type. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Drop-for-Deque%3CT,+N%3E"class="impl"><aclass="src rightside"href="../../src/heapless/deque.rs.html#371">source</a><ahref="#impl-Drop-for-Deque%3CT,+N%3E"class="anchor">§</a><h3class="code-header">impl<T, const N: usize> Drop for <aclass="struct"href="struct.Deque.html"title="struct arduboy_rust::heapless::Deque">Deque</a><T, N></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.drop"class="method trait-impl"><aclass="src rightside"href="../../src/heapless/deque.rs.html#372">source</a><ahref="#method.drop"class="anchor">§</a><h4class="code-header">fn <aclass="fn">drop</a>(&mut self)</h4></section></summary><divclass='docblock'>Executes the destructor for this type. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-IntoIterator-for-%26'a+Deque%3CT,+N%3E"class="impl"><aclass="src rightside"href="../../src/heapless/deque.rs.html#523">source</a><ahref="#impl-IntoIterator-for-%26'a+Deque%3CT,+N%3E"class="anchor">§</a><h3class="code-header">impl<'a, T, const N: usize> IntoIterator for &'a <aclass="struct"href="struct.Deque.html"title="struct arduboy_rust::heapless::Deque">Deque</a><T, N></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Item"class="associatedtype trait-impl"><ahref="#associatedtype.Item"class="anchor">§</a><h4class="code-header">type <aclass="associatedtype">Item</a> = &'a T</h4></section></summary><divclass='docblock'>The type of the elements being iterated over.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.IntoIter"class="associatedtype trait-impl"><ahref="#associatedtype.IntoIter"class="anchor">§</a><h4class="code-header">type <aclass="associatedtype">IntoIter</a> = Iter<'a, T, N></h4></section></summary><divclass='docblock'>Which kind of iterator are we turning this into?</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.into_iter"class="method trait-impl"><aclass="src rightside"href="../../src/heapless/deque.rs.html#527">source</a><ahref="#method.into_iter"class="anchor">§</a><h4class="code-header">fn <aclass="fn">into_iter</a>(self) -><&'a <aclass="struct"href="struct.Deque.html"title="structard
T: UnwindSafe,</span></h3></section></div><h2id="blanket-implementations"class="small-section-header">Blanket Implementations<ahref="#blanket-implementations"class="anchor">§</a></h2><divid="blanket-implementations-list"><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Any-for-Deque%3CT,+N%3E"class="impl"><ahref="#impl-Any-for-Deque%3CT,+N%3E"class="anchor">§</a><h3class="code-header">impl<T> Any for T<spanclass="where fmt-newline">where
T: 'static + ?Sized,</span></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.type_id"class="method trait-impl"><ahref="#method.type_id"class="anchor">§</a><h4class="code-header">fn <aclass="fn">type_id</a>(&self) -> TypeId</h4></section></summary><divclass='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Borrow%3CT%3E-for-Deque%3CT,+N%3E"class="impl"><ahref="#impl-Borrow%3CT%3E-for-Deque%3CT,+N%3E"class="anchor">§</a><h3class="code-header">impl<T> Borrow<T> for T<spanclass="where fmt-newline">where
T: ?Sized,</span></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow"class="method trait-impl"><ahref="#method.borrow"class="anchor">§</a><h4class="code-header">fn <aclass="fn">borrow</a>(&self) ->&T</h4></section></summary><divclass='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-BorrowMut%3CT%3E-for-Deque%3CT,+N%3E"class="impl"><ahref="#impl-BorrowMut%3CT%3E-for-Deque%3CT,+N%3E"class="anchor">§</a><h3class="code-header">impl<T> BorrowMut<T> for T<spanclass="where fmt-newline">where
T: ?Sized,</span></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow_mut"class="method trait-impl"><ahref="#method.borrow_mut"class="anchor">§</a><h4class="code-header">fn <aclass="fn">borrow_mut</a>(&mut self) ->&mut T</h4></section></summary><divclass='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-From%3CT%3E-for-Deque%3CT,+N%3E"class="impl"><ahref="#impl-From%3CT%3E-for-Deque%3CT,+N%3E"class="anchor">§</a><h3class="code-header">impl<T> From<T> for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl"><ahref="#method.from"class="anchor">§</a><h4class="code-header">fn <aclass="fn">from</a>(t: T) -> T</h4></section></summary><divclass="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Into%3CU%3E-for-Deque%3CT,+N%3E"class="impl"><ahref="#impl-Into%3CU%3E-for-Deque%3CT,+N%3E"class="anchor">§</a><h3class="code-header">impl<T, U> Into<U> for T<spanclass="where fmt-newline">where
U: Into<T>,</span></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl"><ahref="#associatedtype.Error-1"class="anchor">§</a><h4class="code-header">type <aclass="associatedtype">Error</a> = Infallible</h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_from"class="method trait-impl"><ahref="#method.try_from"class="anchor">§</a><h4class="code-header">fn <aclass="fn">try_from</a>(value: U) -> Result<T, <T as TryFrom<U>>::Error></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-Deque%3CT,+N%3E"class="impl"><ahref="#impl-TryInto%3CU%3E-for-Deque%3CT,+N%3E"class="anchor">§</a><h3class="code-header">impl<T, U> TryInto<U> for T<spanclass="where fmt-newline">where
U: TryFrom<T>,</span></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl"><ahref="#associatedtype.Error"class="anchor">§</a><h4class="code-header">type <aclass="associatedtype">Error</a> = <U as TryFrom<T>>::Error</h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl"><ahref="#method.try_into"class="anchor">§</a><h4class="code-header">fn <aclass="fn">try_into</a>(self) -> Result<U, <U as TryFrom<T>>::Error></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>