2020-04-12 07:31:35 +00:00
|
|
|
use pyo3::prelude::*;
|
|
|
|
use pyo3::types::PyList;
|
|
|
|
|
2020-05-31 15:15:33 +00:00
|
|
|
#[pyfunction]
|
2024-03-20 22:35:08 +00:00
|
|
|
fn static_ref(list: &'static Bound<'_, PyList>) -> usize {
|
|
|
|
list.len()
|
|
|
|
}
|
|
|
|
|
|
|
|
#[pyfunction]
|
|
|
|
fn static_py(list: &Bound<'static, PyList>) -> usize {
|
2020-05-31 15:15:33 +00:00
|
|
|
list.len()
|
2020-04-12 07:31:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|