MCPcopy Create free account
hub / github.com/PyO3/rust-numpy / into_pyarray_boxed_slice

Function into_pyarray_boxed_slice

tests/to_py.rs:120–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118
119#[test]
120fn into_pyarray_boxed_slice() {
121 Python::attach(|py| {
122 let arr = vec![1, 2, 3].into_boxed_slice().into_pyarray(py);
123
124 assert_eq!(arr.readonly().as_slice().unwrap(), &[1, 2, 3])
125 });
126}
127
128#[test]
129fn into_pyarray_array() {

Callers

nothing calls this directly

Calls 1

into_pyarrayMethod · 0.80

Tested by

no test coverage detected