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

Method from_vec

src/array.rs:544–546  ·  view source on GitHub ↗
(py: Python<'py>, vec: Vec<T>)

Source from the content-addressed store, hash-verified

542 /// ```
543 #[inline(always)]
544 pub fn from_vec<'py>(py: Python<'py>, vec: Vec<T>) -> Bound<'py, Self> {
545 vec.into_pyarray(py)
546 }
547
548 /// Construct a one-dimensional array from an [`Iterator`].
549 ///

Callers

nothing calls this directly

Calls 1

into_pyarrayMethod · 0.80

Tested by

no test coverage detected