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

Method push

src/arrayvec.rs:694–697  ·  view source on GitHub ↗
(&mut self, val: A::Item)

Source from the content-addressed store, hash-verified

692 /// ```
693 #[inline(always)]
694 pub fn push(&mut self, val: A::Item) {
695 let x = self.try_push(val);
696 assert!(x.is_none(), "ArrayVec::push> capacity overflow!");
697 }
698
699 /// Tries to place an element onto the end of the vec.\
700 /// Returns back the element if the capacity is exhausted,

Callers 7

deserialize_readerMethod · 0.45
arbitraryMethod · 0.45
try_appendMethod · 0.45
resize_withMethod · 0.45
extendMethod · 0.45
from_iterMethod · 0.45
visit_seqMethod · 0.45

Calls 1

try_pushMethod · 0.80

Tested by

no test coverage detected