pyo3 0.12.3

Bindings to Python interpreter
Documentation
1
2
3
4
5
6
7
8
9
use pyo3::prelude::*;
use pyo3::types::PyList;

#[pyfunction]
fn static_ref(list: &'static PyList) -> usize {
    list.len()
}

fn main() {}