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

Function raw_ptr_write

crates/common/src/boxvec.rs:583–589  ·  view source on GitHub ↗
(ptr: *mut T, value: T)

Source from the content-addressed store, hash-verified

581}
582
583unsafe fn raw_ptr_write<T>(ptr: *mut T, value: T) {
584 if mem::size_of::<T>() == 0 {
585 /* nothing */
586 } else {
587 unsafe { ptr::write(ptr, value) }
588 }
589}
590
591impl<T> Clone for BoxVec<T>
592where

Callers 1

extendMethod · 0.85

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected