pub struct Invariant<T>(/* private fields */);
Expand description
A marker for forcing T to be considered invariant.
Implementations§
Trait Implementations§
Source§impl<T> Ord for Invariant<T>
impl<T> Ord for Invariant<T>
Source§impl<T> PartialOrd for Invariant<T>
impl<T> PartialOrd for Invariant<T>
impl<T> Copy for Invariant<T>
impl<T> Eq for Invariant<T>
impl<T> Send for Invariant<T>
impl<T> Sync for Invariant<T>
Auto Trait Implementations§
impl<T> Freeze for Invariant<T>
impl<T> RefUnwindSafe for Invariant<T>where
T: RefUnwindSafe,
impl<T> Unpin for Invariant<T>
impl<T> UnwindSafe for Invariant<T>where
T: RefUnwindSafe,
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