Trait swc_common::TypeEq

source ·
pub trait TypeEq {
    // Required method
    fn type_eq(&self, other: &Self) -> bool;
}
Expand description

Derive with #[derive(TypeEq)].

Required Methods§

source

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

Note: This method should return true for non-type values.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TypeEq for bool

source§

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

source§

impl TypeEq for char

source§

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

source§

impl TypeEq for f32

source§

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

source§

impl TypeEq for f64

source§

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

source§

impl TypeEq for i8

source§

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

source§

impl TypeEq for i16

source§

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

source§

impl TypeEq for i32

source§

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

source§

impl TypeEq for i64

source§

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

source§

impl TypeEq for i128

source§

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

source§

impl TypeEq for isize

source§

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

source§

impl TypeEq for str

source§

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

source§

impl TypeEq for u8

source§

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

source§

impl TypeEq for u16

source§

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

source§

impl TypeEq for u32

source§

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

source§

impl TypeEq for u64

source§

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

source§

impl TypeEq for u128

source§

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

source§

impl TypeEq for usize

source§

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

source§

impl TypeEq for String

source§

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

source§

impl TypeEq for BigInt

source§

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

source§

impl<'a, N> TypeEq for &'a N
where N: TypeEq,

source§

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

source§

impl<B: TypeEq, A: TypeEq> TypeEq for (B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<N> TypeEq for Box<N>
where N: TypeEq,

source§

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

source§

impl<N> TypeEq for Rc<N>
where N: TypeEq,

source§

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

source§

impl<N> TypeEq for RefCell<N>
where N: TypeEq,

source§

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

source§

impl<N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<O: TypeEq, N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (O, N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<P: TypeEq, O: TypeEq, N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<Q: TypeEq, P: TypeEq, O: TypeEq, N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (Q, P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<R: TypeEq, Q: TypeEq, P: TypeEq, O: TypeEq, N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (R, Q, P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<S: TypeEq, R: TypeEq, Q: TypeEq, P: TypeEq, O: TypeEq, N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (S, R, Q, P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<T> TypeEq for Option<T>
where T: TypeEq,

source§

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

source§

impl<T> TypeEq for Vec<T>
where T: TypeEq,

source§

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

source§

impl<T: TypeEq, S: TypeEq, R: TypeEq, Q: TypeEq, P: TypeEq, O: TypeEq, N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (T, S, R, Q, P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<U: TypeEq, T: TypeEq, S: TypeEq, R: TypeEq, Q: TypeEq, P: TypeEq, O: TypeEq, N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (U, T, S, R, Q, P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<V: TypeEq, U: TypeEq, T: TypeEq, S: TypeEq, R: TypeEq, Q: TypeEq, P: TypeEq, O: TypeEq, N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (V, U, T, S, R, Q, P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<W: TypeEq, V: TypeEq, U: TypeEq, T: TypeEq, S: TypeEq, R: TypeEq, Q: TypeEq, P: TypeEq, O: TypeEq, N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (W, V, U, T, S, R, Q, P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<X: TypeEq, W: TypeEq, V: TypeEq, U: TypeEq, T: TypeEq, S: TypeEq, R: TypeEq, Q: TypeEq, P: TypeEq, O: TypeEq, N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (X, W, V, U, T, S, R, Q, P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<Y: TypeEq, X: TypeEq, W: TypeEq, V: TypeEq, U: TypeEq, T: TypeEq, S: TypeEq, R: TypeEq, Q: TypeEq, P: TypeEq, O: TypeEq, N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (Y, X, W, V, U, T, S, R, Q, P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

source§

impl<Z: TypeEq, Y: TypeEq, X: TypeEq, W: TypeEq, V: TypeEq, U: TypeEq, T: TypeEq, S: TypeEq, R: TypeEq, Q: TypeEq, P: TypeEq, O: TypeEq, N: TypeEq, M: TypeEq, L: TypeEq, K: TypeEq, J: TypeEq, I: TypeEq, H: TypeEq, G: TypeEq, F: TypeEq, E: TypeEq, D: TypeEq, C: TypeEq, B: TypeEq, A: TypeEq> TypeEq for (Z, Y, X, W, V, U, T, S, R, Q, P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A)

source§

fn type_eq(&self, rhs: &Self) -> bool

Implementors§

source§

impl TypeEq for BytePos

source§

impl TypeEq for Span

source§

impl<N> TypeEq for Arc<N>
where N: TypeEq,