Skip to main content

PyUtf8StrRef

Type Alias PyUtf8StrRef 

Source
pub type PyUtf8StrRef = PyRef<PyUtf8Str>;

Aliased Type§

pub struct PyUtf8StrRef { /* 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.