MCPcopy Create free account
hub / github.com/Lokathor/tinyvec / resize

Method resize

src/arrayvec.rs:778–783  ·  view source on GitHub ↗
(&mut self, new_len: usize, new_val: A::Item)

Source from the content-addressed store, hash-verified

776 /// ```
777 #[inline]
778 pub fn resize(&mut self, new_len: usize, new_val: A::Item)
779 where
780 A::Item: Clone,
781 {
782 self.resize_with(new_len, || new_val.clone())
783 }
784
785 /// Resize the vec to the new length.
786 ///

Callers

nothing calls this directly

Calls 2

resize_withMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected