1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::{Stripped, StrippedPartialEq};
use crate::Loc;

/// Defines the total equality of located values
/// without considering locations.
pub trait StrippedEq: StrippedPartialEq {}

impl<T: StrippedEq> Eq for Stripped<T> {}

impl<'t, T: StrippedEq> StrippedEq for &'t T {}

impl<T: StrippedEq, F, S> StrippedEq for Loc<T, F, S> {}

impl<T: StrippedEq> StrippedEq for Box<T> {}

impl<T: StrippedEq> StrippedEq for Option<T> {}

impl<T: StrippedEq> StrippedEq for Vec<T> {}