[][src]Trait rustpython_vm::pyobject::PyValue

pub trait PyValue: Debug + Sized + 'static {
    const HAVE_DICT: bool;

    fn class(vm: &VirtualMachine) -> PyClassRef;

    fn into_ref(self, vm: &VirtualMachine) -> PyRef<Self> { ... }
fn into_ref_with_type(
        self,
        vm: &VirtualMachine,
        cls: PyClassRef
    ) -> PyResult<PyRef<Self>> { ... }
fn into_ref_with_type_unchecked(
        self,
        cls: PyClassRef,
        dict: Option<PyDictRef>
    ) -> PyRef<Self> { ... } }

Associated Constants

const HAVE_DICT: bool

Required methods

fn class(vm: &VirtualMachine) -> PyClassRef

Provided methods

fn into_ref(self, vm: &VirtualMachine) -> PyRef<Self>

fn into_ref_with_type(
    self,
    vm: &VirtualMachine,
    cls: PyClassRef
) -> PyResult<PyRef<Self>>

fn into_ref_with_type_unchecked(
    self,
    cls: PyClassRef,
    dict: Option<PyDictRef>
) -> PyRef<Self>

Implementations on Foreign Types

impl PyValue for Passwd[src][]

Implementors

impl PyValue for PyBaseException[src][]

impl PyValue for PyBuiltinFunction[src][]

impl PyValue for PyBuiltinMethod[src][]

impl PyValue for PyByteArray[src][]

impl PyValue for PyByteArrayIterator[src][]

impl PyValue for PyBytes[src][]

impl PyValue for PyBytesIterator[src][]

impl PyValue for PyClassMethod[src][]

impl PyValue for PyCode[src][]

impl PyValue for PyComplex[src][]

impl PyValue for PyCoroutine[src][]

impl PyValue for PyCoroutineWrapper[src][]

impl PyValue for PyDict[src][]

impl PyValue for PyEnumerate[src][]

impl PyValue for PyFilter[src][]

impl PyValue for PyFloat[src][]

impl PyValue for PyBoundMethod[src][]

impl PyValue for PyFunction[src][]

impl PyValue for PyGenerator[src][]

impl PyValue for PyGetSet[src][]

impl PyValue for PyInt[src][]

impl PyValue for PySequenceIterator[src][]

impl PyValue for PyList[src][]

impl PyValue for PyListIterator[src][]

impl PyValue for PyListReverseIterator[src][]

impl PyValue for PyMap[src][]

impl PyValue for PyMappingProxy[src][]

impl PyValue for PyMemoryView[src][]

impl PyValue for PyModule[src][]

impl PyValue for PyNamespace[src][]

impl PyValue for PyNone[src][]

impl PyValue for PyBaseObject[src][]

impl PyValue for PyProperty[src][]

impl PyValue for PyRange[src][]

impl PyValue for PyRangeIterator[src][]

impl PyValue for PyFrozenSet[src][]

impl PyValue for PySet[src][]

impl PyValue for PySlice[src][]

impl PyValue for PyStaticMethod[src][]

impl PyValue for PyString[src][]

impl PyValue for PyStringIterator[src][]

impl PyValue for PyStringReverseIterator[src][]

impl PyValue for PySuper[src][]

impl PyValue for PyTraceback[src][]

impl PyValue for PyTuple[src][]

impl PyValue for PyTupleIterator[src][]

impl PyValue for PyClass[src][]

impl PyValue for PyWeakProxy[src][]

impl PyValue for PyWeak[src][]

impl PyValue for PyZip[src][]

impl PyValue for PyEllipsis[src][]

impl PyValue for PyNotImplemented[src][]

impl PyValue for PyArray[src][]

impl PyValue for PyArrayIter[src][]

impl PyValue for PySocket[src][]

impl PyValue for PyPromise

impl PyValue for PyJsValue