Skip to main content

ObjectPartialEq

Trait ObjectPartialEq 

Source
pub trait ObjectPartialEq {
    // Required method
    fn eq(&self, other: Rc<dyn Object>) -> bool;

    // Provided method
    fn ne(&self, other: Rc<dyn Object>) -> bool { ... }
}
Expand description

Stainless Script Object version of PartialEq

Required Methods§

Source

fn eq(&self, other: Rc<dyn Object>) -> bool

Provided Methods§

Source

fn ne(&self, other: Rc<dyn Object>) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ObjectPartialEq for bool

Source§

fn eq(&self, other: Rc<dyn Object>) -> bool

Source§

impl ObjectPartialEq for f64

Source§

fn eq(&self, other: Rc<dyn Object>) -> bool

Source§

impl ObjectPartialEq for String

Source§

fn eq(&self, other: Rc<dyn Object>) -> bool

Implementors§