MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / push_unchecked

Method push_unchecked

src/fast.rs:156–160  ·  view source on GitHub ↗
(&mut self, t: T)

Source from the content-addressed store, hash-verified

154impl<T> PushUnchecked<T> for FastVec<T> {
155 #[inline(always)]
156 unsafe fn push_unchecked(&mut self, t: T) {
157 debug_assert!(self.end < self.capacity);
158 std::ptr::write(self.end, t);
159 self.end = self.end.add(1);
160 }
161}
162
163impl<T> PushUnchecked<T> for Vec<T> {

Callers 11

encodeMethod · 0.80
test_as_sliceFunction · 0.80
bench_push_fastFunction · 0.80
bench_push_uncheckedFunction · 0.80
encodeMethod · 0.80
encode_less_than_255Method · 0.80
encodeMethod · 0.80
encode_vectoredMethod · 0.80
encodeMethod · 0.80
encodeMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by 1

test_as_sliceFunction · 0.64