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

Method ndim

crates/vm/src/protocol/buffer.rs:232–234  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

230 }
231
232 pub fn ndim(&self) -> usize {
233 self.dim_desc.len()
234 }
235
236 pub fn is_contiguous(&self) -> bool {
237 if self.len == 0 {

Callers 6

validateMethod · 0.45
for_each_segmentMethod · 0.45
_for_each_segmentMethod · 0.45
zip_eqMethod · 0.45
_zip_eqMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected