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

Function slice_as_uninit

crates/stdlib/src/socket.rs:2714–2716  ·  view source on GitHub ↗
(v: &mut [T])

Source from the content-addressed store, hash-verified

2712 }
2713
2714 unsafe fn slice_as_uninit<T>(v: &mut [T]) -> &mut [MaybeUninit<T>] {
2715 unsafe { &mut *(v as *mut [T] as *mut [MaybeUninit<T>]) }
2716 }
2717
2718 enum IoOrPyException {
2719 Timeout,

Callers 2

recv_intoMethod · 0.85
recvfrom_intoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected