Skip to main content

PyTupleRef

Type Alias PyTupleRef 

Source
pub type PyTupleRef = PyRef<PyTuple>;

Aliased Type§

pub struct PyTupleRef { /* private fields */ }

Methods from Deref<Target = Py<T>>§

Source

pub fn downgrade( &self, callback: Option<PyObjectRef>, vm: &VirtualMachine, ) -> PyResult<PyWeakRef<T>>

Source

pub fn payload(&self) -> &T

Source

pub fn to_base(&self) -> &Py<T::Base>

Converts &Py<T> to &Py<T::Base>.

Source

pub fn upcast_ref<U: PyPayload + StaticType>(&self) -> &Py<U>
where T: StaticType,

Converts &Py<T> to &Py<U> where U is an ancestor type.

Trait Implementations§

Source§

impl<T: PyPayload> From<PyRef<PyTuple<PyRef<T>>>> for PyTupleRef

Source§

fn from(tup: PyRef<PyTuple<PyRef<T>>>) -> Self

Converts to this type from the input type.