Trait janetrs::DeepEq

source ·
pub trait DeepEq<Rhs = Self> {
    // Required method
    fn deep_eq(&self, other: &Rhs) -> bool;
}
Expand description

A trait to express a deep equality.

A deep equality is to check equality of the collections by value. That is needed because the PartialEq for Janet mutable data structures are simply check is the inner pointer are the same.

Using this trait to check for equality is probably much slower than PartialEq implementations.

Required Methods§

source

fn deep_eq(&self, other: &Rhs) -> bool

Implementors§