#[repr(transparent)]pub struct Stripped<T: ?Sized>(pub T);Expand description
Wrapper to consider values without location information.
This wrapper can be used in combination with the Stripped* traits such
as StrippedPartialEq to access and compare values ignoring code mapping
metadata.
An owned value can directly be wrapped.
Any reference &T can be safely converted into &Stripped<T> using the
BorrowStripped::stripped method.
Tuple Fields
0: TTrait Implementations
sourceimpl<T> BorrowMut<T> for Stripped<T>
impl<T> BorrowMut<T> for Stripped<T>
sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T: StrippedHash> Hash for Stripped<T>
impl<T: StrippedHash> Hash for Stripped<T>
sourceimpl<T: StrippedOrd> Ord for Stripped<T>
impl<T: StrippedOrd> Ord for Stripped<T>
sourceimpl<T: StrippedPartialEq<U>, U> PartialEq<Stripped<U>> for Stripped<T>
impl<T: StrippedPartialEq<U>, U> PartialEq<Stripped<U>> for Stripped<T>
sourceimpl<T: StrippedPartialOrd<U>, U> PartialOrd<Stripped<U>> for Stripped<T>
impl<T: StrippedPartialOrd<U>, U> PartialOrd<Stripped<U>> for Stripped<T>
sourcefn partial_cmp(&self, other: &Stripped<U>) -> Option<Ordering>
fn partial_cmp(&self, other: &Stripped<U>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<T: Copy + ?Sized> Copy for Stripped<T>
impl<T: StrippedEq> Eq for Stripped<T>
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Stripped<T> where
T: RefUnwindSafe,
impl<T: ?Sized> Send for Stripped<T> where
T: Send,
impl<T: ?Sized> Sync for Stripped<T> where
T: Sync,
impl<T: ?Sized> Unpin for Stripped<T> where
T: Unpin,
impl<T: ?Sized> UnwindSafe for Stripped<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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