Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
get
Method · 0.45
as_number
Method · 0.45
Calls
2
compute_length
Method · 0.80
is_zero
Method · 0.45
Tested by
no test coverage detected