MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / item_size

Method item_size

src/buffer.rs:211–213  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

209 /// Important exception: when requesting an unformatted buffer, item_size still has the value
210 #[inline]
211 pub fn item_size(&self) -> usize {
212 self.0.itemsize as usize
213 }
214
215 /// Gets the total number of items.
216 #[inline]

Callers 7

as_sliceMethod · 0.80
as_mut_sliceMethod · 0.80
as_fortran_sliceMethod · 0.80
as_fortran_mut_sliceMethod · 0.80
copy_to_slice_implMethod · 0.80
to_vec_implMethod · 0.80
copy_from_slice_implMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected