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

Method format

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

Source from the content-addressed store, hash-verified

277 /// A NUL terminated string in struct module style syntax describing the contents of a single item.
278 #[inline]
279 pub fn format(&self) -> &CStr {
280 if self.0.format.is_null() {
281 cstr!("B")
282 } else {
283 unsafe { CStr::from_ptr(self.0.format) }
284 }
285 }
286
287 /// Gets whether the buffer is contiguous in C-style order (last index varies fastest when visiting items in order of memory address).
288 #[inline]

Callers 9

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
operator_implFunction · 0.80
check_symbols.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected