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

Method len

crates/vm/src/function/buffer.rs:53–55  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

51 }
52
53 pub const fn len(&self) -> usize {
54 self.0.desc.len
55 }
56
57 pub const fn is_empty(&self) -> bool {
58 self.len() == 0

Callers 7

with_kwargs_namesMethod · 0.45
from_vectorcallMethod · 0.45
from_vectorcall_ownedMethod · 0.45
bindMethod · 0.45
vec_into_f64Method · 0.45
is_emptyMethod · 0.45
__const_concat_arraysMethod · 0.45

Calls 1

as_wtf8Method · 0.45

Tested by

no test coverage detected