Skip to main content

struct_sequence_new

Function struct_sequence_new 

Source
pub fn struct_sequence_new(
    cls: PyTypeRef,
    seq: PyObjectRef,
    vm: &VirtualMachine,
) -> PyResult
Expand description

Create a new struct sequence instance from a sequence.

The class must have n_sequence_fields and n_fields attributes set (done automatically by PyStructSequence::extend_pyclass).