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

Method readonly

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

Source from the content-addressed store, hash-verified

202 /// Gets whether the underlying buffer is read-only.
203 #[inline]
204 pub fn readonly(&self) -> bool {
205 self.0.readonly != 0
206 }
207
208 /// Gets the size of a single element, in bytes.
209 /// Important exception: when requesting an unformatted buffer, item_size still has the value

Callers 3

as_mut_sliceMethod · 0.80
as_fortran_mut_sliceMethod · 0.80
copy_from_slice_implMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected