Struct chandeliers_err::transparent::Transparent
source · pub struct Transparent<T> { /* private fields */ }Expand description
A type that transparently implements PartialEq and Hash, to be used
in structs that carry additional data that should not be relevant in comparisons.
It additionally supports creating dummy values and they will also compare equal to all other and hash identically.
Implementations§
source§impl<T> Transparent<T>
impl<T> Transparent<T>
source§impl<T> Transparent<T>
impl<T> Transparent<T>
Trait Implementations§
source§impl<T: Clone> Clone for Transparent<T>
impl<T: Clone> Clone for Transparent<T>
source§fn clone(&self) -> Transparent<T>
fn clone(&self) -> Transparent<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Debug> Debug for Transparent<T>
impl<T: Debug> Debug for Transparent<T>
source§impl<T: Display> Display for Transparent<T>
impl<T: Display> Display for Transparent<T>
source§impl<T> Hash for Transparent<T>
impl<T> Hash for Transparent<T>
source§impl<T> PartialEq for Transparent<T>
impl<T> PartialEq for Transparent<T>
source§impl<T: TrySpan> TrySpan for Transparent<T>
impl<T: TrySpan> TrySpan for Transparent<T>
impl<T: Copy> Copy for Transparent<T>
impl<T> Eq for Transparent<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Transparent<T>where T: RefUnwindSafe,
impl<T> Send for Transparent<T>where T: Send,
impl<T> Sync for Transparent<T>where T: Sync,
impl<T> Unpin for Transparent<T>where T: Unpin,
impl<T> UnwindSafe for Transparent<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more