#[repr(C)]
pub struct PySequenceMethods { pub sq_length: Option<unsafe extern "C" fn(*mut PyObject) -> isize>, pub sq_concat: Option<unsafe extern "C" fn(*mut PyObject, *mut PyObject) -> *mut PyObject>, pub sq_repeat: Option<unsafe extern "C" fn(*mut PyObject, isize) -> *mut PyObject>, pub sq_item: Option<unsafe extern "C" fn(*mut PyObject, isize) -> *mut PyObject>, pub was_sq_slice: *mut c_void, pub sq_ass_item: Option<unsafe extern "C" fn(*mut PyObject, isize, *mut PyObject) -> i32>, pub was_sq_ass_slice: *mut c_void, pub sq_contains: Option<unsafe extern "C" fn(*mut PyObject, *mut PyObject) -> i32>, pub sq_inplace_concat: Option<unsafe extern "C" fn(*mut PyObject, *mut PyObject) -> *mut PyObject>, pub sq_inplace_repeat: Option<unsafe extern "C" fn(*mut PyObject, isize) -> *mut PyObject>, }

Fields

sq_length: Option<unsafe extern "C" fn(*mut PyObject) -> isize>sq_concat: Option<unsafe extern "C" fn(*mut PyObject, *mut PyObject) -> *mut PyObject>sq_repeat: Option<unsafe extern "C" fn(*mut PyObject, isize) -> *mut PyObject>sq_item: Option<unsafe extern "C" fn(*mut PyObject, isize) -> *mut PyObject>was_sq_slice: *mut c_voidsq_ass_item: Option<unsafe extern "C" fn(*mut PyObject, isize, *mut PyObject) -> i32>was_sq_ass_slice: *mut c_voidsq_contains: Option<unsafe extern "C" fn(*mut PyObject, *mut PyObject) -> i32>sq_inplace_concat: Option<unsafe extern "C" fn(*mut PyObject, *mut PyObject) -> *mut PyObject>sq_inplace_repeat: Option<unsafe extern "C" fn(*mut PyObject, isize) -> *mut PyObject>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.