AnyOp

Trait AnyOp 

Source
pub trait AnyOp<T: Any> {
    // Required methods
    fn eq<U: Any>(self, other: U) -> OpLogical<T, U>;
    fn ne<U: Any>(self, other: U) -> OpLogical<T, U>;
    fn lt<U: Any>(self, other: U) -> OpLogical<T, U>;
    fn le<U: Any>(self, other: U) -> OpLogical<T, U>;
    fn gt<U: Any>(self, other: U) -> OpLogical<T, U>;
    fn ge<U: Any>(self, other: U) -> OpLogical<T, U>;
}
Expand description

Comparision operators

Required Methods§

Source

fn eq<U: Any>(self, other: U) -> OpLogical<T, U>

equal

Source

fn ne<U: Any>(self, other: U) -> OpLogical<T, U>

not equal

Source

fn lt<U: Any>(self, other: U) -> OpLogical<T, U>

less than

Source

fn le<U: Any>(self, other: U) -> OpLogical<T, U>

less than or equal

Source

fn gt<U: Any>(self, other: U) -> OpLogical<T, U>

greater than

Source

fn ge<U: Any>(self, other: U) -> OpLogical<T, U>

greater than or equal

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§

Source§

impl<T: Any> AnyOp<T> for T