Trait librsnek::api::method::Equal
[−]
[src]
pub trait Equal { fn op_eq(&self, rt: &Runtime, rhs: &RtObject) -> Result<RtObject, Error> { ... } fn native_eq(&self, other: &Type) -> Result<Boolean, Error> { ... } }
api_trait!(binary, self, __eq__, Equal, op_eq, native_eq, rs::Boolean);
Provided Methods
fn op_eq(&self, rt: &Runtime, rhs: &RtObject) -> Result<RtObject, Error>
Default implementation of equals fallsbacks to op_is.
fn native_eq(&self, other: &Type) -> Result<Boolean, Error>
Default implementation of equals fallsbacks to op_is.
Implementors
impl Equal for RtObject
impl Equal for WeakRtObject
impl Equal for Type
impl Equal for RefCountedValue<BoolValue, RefCount>
impl Equal for RefCountedValue<StringValue, RefCount>
impl Equal for RefCountedValue<CodeValue, RefCount>
impl Equal for RefCountedValue<ComplexValue, RefCount>
impl Equal for RefCountedValue<DictValue, RefCount>
impl Equal for RefCountedValue<FloatValue, RefCount>
impl Equal for RefCountedValue<FrameValue, RefCount>
impl Equal for RefCountedValue<FrozenSetValue, RefCount>
impl Equal for RefCountedValue<IntValue, RefCount>
impl Equal for RefCountedValue<IteratorValue, RefCount>
impl Equal for RefCountedValue<ListValue, RefCount>
impl Equal for RefCountedValue<FuncValue, RefCount>
impl Equal for RefCountedValue<NoneValue, RefCount>
impl Equal for RefCountedValue<ObjectValue, RefCount>
impl Equal for RefCountedValue<TypeValue, RefCount>
impl Equal for RefCountedValue<SetValue, RefCount>
impl Equal for RefCountedValue<StringValue, RefCount>
impl Equal for RefCountedValue<TupleValue, RefCount>