Trait pythonize::PythonizeListType
source · [−]pub trait PythonizeListType: Sized {
fn create_sequence<T, U>(
py: Python<'_>,
elements: impl IntoIterator<Item = T, IntoIter = U>
) -> PyResult<&PySequence>
where
T: ToPyObject,
U: ExactSizeIterator<Item = T>;
}Expand description
Trait for types which can represent a Python sequence
Required Methods
fn create_sequence<T, U>(
py: Python<'_>,
elements: impl IntoIterator<Item = T, IntoIter = U>
) -> PyResult<&PySequence> where
T: ToPyObject,
U: ExactSizeIterator<Item = T>,
fn create_sequence<T, U>(
py: Python<'_>,
elements: impl IntoIterator<Item = T, IntoIter = U>
) -> PyResult<&PySequence> where
T: ToPyObject,
U: ExactSizeIterator<Item = T>,
Constructor