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

Function into_pyarray_vec

tests/to_py.rs:111–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109
110#[test]
111fn into_pyarray_vec() {
112 Python::attach(|py| {
113 let arr = vec![1, 2, 3].into_pyarray(py);
114
115 assert_eq!(arr.readonly().as_slice().unwrap(), &[1, 2, 3])
116 });
117}
118
119#[test]
120fn into_pyarray_boxed_slice() {

Callers

nothing calls this directly

Calls 1

into_pyarrayMethod · 0.80

Tested by

no test coverage detected