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

Method capacity

crates/common/src/boxvec.rs:59–61  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

57
58 #[inline]
59 pub const fn capacity(&self) -> usize {
60 self.xs.len()
61 }
62
63 pub const fn is_full(&self) -> bool {
64 self.len() == self.capacity()

Callers 6

is_fullMethod · 0.45
remaining_capacityMethod · 0.45
try_pushMethod · 0.45
try_insertMethod · 0.45
extendMethod · 0.45
cloneMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected