Skip to main content

TypeFunctionInstanceEquivalent

Trait TypeFunctionInstanceEquivalent 

Source
pub trait TypeFunctionInstanceEquivalent {
    // Required methods
    fn same_function(&self, other: &Self) -> bool;
    fn type_arguments(&self) -> &[TypeId] ;
    fn pack_arguments(&self) -> &[TypePackId] ;
}
Expand description

C++ template<typename T> bool areEquivalent(const T& a, const T& b).

Required Methods§

Source

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

Source

fn type_arguments(&self) -> &[TypeId]

Source

fn pack_arguments(&self) -> &[TypePackId]

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§