[][src]Trait rustpython_vm::pyobject::IdProtocol

pub trait IdProtocol {
    fn get_id(&self) -> usize;

    fn is<T>(&self, other: &T) -> bool
    where
        T: IdProtocol
, { ... } }

Required methods

fn get_id(&self) -> usize

Provided methods

fn is<T>(&self, other: &T) -> bool where
    T: IdProtocol

Implementations on Foreign Types

impl<T: ?Sized + IdProtocol> IdProtocol for Rc<T>[src][]

Implementors

impl<T: PyObjectPayload> IdProtocol for PyRef<T>[src][]

impl<T: ?Sized + PyObjectPayload> IdProtocol for PyObject<T>[src][]