(v: Vec<Self>)
| 65 | } |
| 66 | |
| 67 | pub fn vec_into_f64(v: Vec<Self>) -> Vec<f64> { |
| 68 | // TODO: Vec::into_raw_parts once stabilized |
| 69 | let mut v = core::mem::ManuallyDrop::new(v); |
| 70 | let (p, l, c) = (v.as_mut_ptr(), v.len(), v.capacity()); |
| 71 | // SAFETY: IntoPyFloat is repr(transparent) over f64 |
| 72 | unsafe { Vec::from_raw_parts(p.cast(), l, c) } |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | impl From<ArgIntoFloat> for f64 { |
nothing calls this directly
no test coverage detected