Trait PartialEqVariadic

Source
pub trait PartialEqVariadic: VariadicExt + Sealed {
    // Required methods
    fn eq(&self, other: &Self) -> bool;
    fn eq_ref(this: Self::AsRefVar<'_>, other: Self::AsRefVar<'_>) -> bool;
}
Expand description

A variadic where all item implement PartialEq.

Required Methods§

Source

fn eq(&self, other: &Self) -> bool

PartialEq between a referenced variadic and a variadic of references, of the same types.

Source

fn eq_ref(this: Self::AsRefVar<'_>, other: Self::AsRefVar<'_>) -> bool

PartialEq for the AsRefVar version op Self.

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.

Implementations on Foreign Types§

Source§

impl PartialEqVariadic for ()

Source§

fn eq(&self, _other: &Self) -> bool

Source§

fn eq_ref( _this: <Self as VariadicExt>::AsRefVar<'_>, _other: <Self as VariadicExt>::AsRefVar<'_>, ) -> bool

Source§

impl<Item, Rest> PartialEqVariadic for (Item, Rest)
where Item: PartialEq, Rest: PartialEqVariadic,

Source§

fn eq(&self, other: &Self) -> bool

Source§

fn eq_ref( this: <Self as VariadicExt>::AsRefVar<'_>, other: <Self as VariadicExt>::AsRefVar<'_>, ) -> bool

Implementors§