mirror of
https://github.com/tlsnotary/tlsn-utils.git
synced 2026-01-09 12:48:03 -05:00
feat: add PartialEq impls for refs
This commit is contained in:
@@ -176,12 +176,24 @@ impl<T: Copy + Ord> PartialEq<Range<T>> for RangeSet<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Copy + Ord> PartialEq<Range<T>> for &RangeSet<T> {
|
||||
fn eq(&self, other: &Range<T>) -> bool {
|
||||
*self == other
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Copy + Ord> PartialEq<RangeSet<T>> for Range<T> {
|
||||
fn eq(&self, other: &RangeSet<T>) -> bool {
|
||||
other == self
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Copy + Ord> PartialEq<RangeSet<T>> for &Range<T> {
|
||||
fn eq(&self, other: &RangeSet<T>) -> bool {
|
||||
other == *self
|
||||
}
|
||||
}
|
||||
|
||||
/// An iterator over the values in a `RangeSet`.
|
||||
pub struct RangeSetIter<'a, T> {
|
||||
iter: std::slice::Iter<'a, Range<T>>,
|
||||
|
||||
Reference in New Issue
Block a user