Struct stc_ts_file_analyzer::analyzer::util::Comparator
source · [−]pub(super) struct Comparator<T>where
T: Copy,{
pub left: T,
pub right: T,
}
Expand description
Simple utility to check (l, r) and (r, l) with same code.
Fields
left: T
right: T
Implementations
Trait Implementations
sourceimpl<T: Clone> Clone for Comparator<T>where
T: Copy,
impl<T: Clone> Clone for Comparator<T>where
T: Copy,
sourcefn clone(&self) -> Comparator<T>
fn clone(&self) -> Comparator<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for Comparator<T>where
T: Copy,
impl<T: Debug> Debug for Comparator<T>where
T: Copy,
impl<T: Copy> Copy for Comparator<T>where
T: Copy,
Auto Trait Implementations
impl<T> RefUnwindSafe for Comparator<T>where
T: RefUnwindSafe,
impl<T> Send for Comparator<T>where
T: Send,
impl<T> Sync for Comparator<T>where
T: Sync,
impl<T> Unpin for Comparator<T>where
T: Unpin,
impl<T> UnwindSafe for Comparator<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more