[][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

Loading content...

Provided methods

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

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

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

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

Loading content...