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

Method is_empty

crates/vm/src/builtins/range.rs:140–142  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

138
139 #[inline]
140 pub fn is_empty(&self) -> bool {
141 self.compute_length().is_zero()
142 }
143
144 #[inline]
145 pub fn forward(&self) -> bool {

Callers 2

getMethod · 0.45
as_numberMethod · 0.45

Calls 2

compute_lengthMethod · 0.80
is_zeroMethod · 0.45

Tested by

no test coverage detected