Skip to main content

Representable

Trait Representable 

Source
pub trait Representable: PyPayload {
    const __OWN_METHOD_DEFS: &'static [PyMethodDef] = _;

    // Provided methods
    fn slot_repr(zelf: &PyObject, vm: &VirtualMachine) -> PyResult<PyRef<PyStr>> { ... }
    fn repr(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<PyRef<PyStr>> { ... }
    fn repr_wtf8(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<Wtf8Buf> { ... }
    fn repr_str(_zelf: &Py<Self>, _vm: &VirtualMachine) -> PyResult<String> { ... }
    fn __extend_py_class(ctx: &'static Context, class: &'static Py<PyType>) { ... }
    fn __extend_slots(slots: &mut PyTypeSlots) { ... }
}

Provided Associated Constants§

Source

const __OWN_METHOD_DEFS: &'static [PyMethodDef] = _

Provided Methods§

Source

fn slot_repr(zelf: &PyObject, vm: &VirtualMachine) -> PyResult<PyRef<PyStr>>

Source

fn repr(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<PyRef<PyStr>>

Source

fn repr_wtf8(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<Wtf8Buf>

Source

fn repr_str(_zelf: &Py<Self>, _vm: &VirtualMachine) -> PyResult<String>

Source

fn __extend_py_class(ctx: &'static Context, class: &'static Py<PyType>)

Source

fn __extend_slots(slots: &mut PyTypeSlots)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Representable for PyAsyncGen

Source§

impl Representable for PyBaseException

Source§

impl Representable for PyBool

Source§

impl Representable for PyBoundMethod

Source§

impl Representable for PyByteArray

Source§

impl Representable for PyBytes

Source§

impl Representable for PyCapsule

Source§

impl Representable for PyClassMethod

Source§

impl Representable for PyCode

Source§

impl Representable for PyComplex

Source§

impl Representable for PyCoroutine

Source§

impl Representable for PyDict

Source§

impl Representable for PyEllipsis

Source§

impl Representable for PyFloat

Source§

impl Representable for PyFrozenSet

Source§

impl Representable for PyFunction

Source§

impl Representable for PyGenerator

Source§

impl Representable for PyGenericAlias

Source§

impl Representable for PyGetSet

Source§

impl Representable for PyInt

Source§

impl Representable for PyInterpolation

Source§

impl Representable for PyList

Source§

impl Representable for PyMappingProxy

Source§

impl Representable for PyMemoryView

Source§

impl Representable for PyModule

Source§

impl Representable for PyNamespace

Source§

impl Representable for PyNone

Source§

impl Representable for PyNotImplemented

Source§

impl Representable for PyRange

Source§

impl Representable for PySet

Source§

impl Representable for PySlice

Source§

impl Representable for PyStaticMethod

Source§

impl Representable for PyStr

Source§

impl Representable for PySuper

Source§

impl Representable for PyTemplate

Source§

impl Representable for PyTuple

Source§

impl Representable for PyType

Source§

impl Representable for PyUnion

Source§

impl Representable for PyWeak

Source§

impl Representable for PyWeakProxy

Source§

impl Representable for Frame

Source§

impl Representable for NoDefault

Source§

impl Representable for ParamSpec

Source§

impl Representable for ParamSpecArgs

Source§

impl Representable for ParamSpecKwargs

Source§

impl Representable for TypeVar

Source§

impl Representable for TypeVarTuple