MCPcopy Index your code
hub / github.com/RustPython/RustPython / push

Method push

crates/common/src/boxvec.rs:71–73  ·  view source on GitHub ↗
(&mut self, element: T)

Source from the content-addressed store, hash-verified

69 }
70
71 pub fn push(&mut self, element: T) {
72 self.try_push(element).unwrap()
73 }
74
75 pub fn try_push(&mut self, element: T) -> Result<(), CapacityError<T>> {
76 if self.len() < self.capacity() {

Callers 15

find_unclosed_bracketFunction · 0.45
to_asciiFunction · 0.45
expandtabsFunction · 0.45
parse_partMethod · 0.45
parseMethod · 0.45
parse_literalMethod · 0.45
parse_specMethod · 0.45
from_strMethod · 0.45
handle_encode_errorMethod · 0.45
handle_decode_errorMethod · 0.45

Calls 2

try_pushMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected