Comparison

Trait Comparison 

Source
pub trait Comparison {
    // Required method
    fn equals(&self, other: &Self, heap: &Heap) -> StrResult<bool>;

    // Provided method
    fn not_equals(&self, other: &Self, heap: &Heap) -> StrResult<bool> { ... }
}

Required Methods§

Source

fn equals(&self, other: &Self, heap: &Heap) -> StrResult<bool>

Provided Methods§

Source

fn not_equals(&self, other: &Self, heap: &Heap) -> StrResult<bool>

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§