Trait variadics::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.

Object Safety§

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§