Struct gazebo::phantom::PhantomDataInvariant
source · [−]pub struct PhantomDataInvariant<T: ?Sized>(_);
Expand description
A type like PhantomData
, but where the contained T
is invariant
in both lifetimes and types. See variance on the Nomicon for an
explanation of these terms.
Implementations
sourceimpl<T: ?Sized> PhantomDataInvariant<T>
impl<T: ?Sized> PhantomDataInvariant<T>
Trait Implementations
sourceimpl<T: ?Sized> Clone for PhantomDataInvariant<T>
impl<T: ?Sized> Clone for PhantomDataInvariant<T>
sourceimpl<T: ?Sized> Debug for PhantomDataInvariant<T>
impl<T: ?Sized> Debug for PhantomDataInvariant<T>
sourceimpl<T: ?Sized> Default for PhantomDataInvariant<T>
impl<T: ?Sized> Default for PhantomDataInvariant<T>
sourceimpl<T: ?Sized> Hash for PhantomDataInvariant<T>
impl<T: ?Sized> Hash for PhantomDataInvariant<T>
sourceimpl<T: ?Sized> Ord for PhantomDataInvariant<T>
impl<T: ?Sized> Ord for PhantomDataInvariant<T>
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: ?Sized> PartialEq<PhantomDataInvariant<T>> for PhantomDataInvariant<T>
impl<T: ?Sized> PartialEq<PhantomDataInvariant<T>> for PhantomDataInvariant<T>
sourcefn eq(&self, other: &PhantomDataInvariant<T>) -> bool
fn eq(&self, other: &PhantomDataInvariant<T>) -> bool
sourceimpl<T: ?Sized> PartialOrd<PhantomDataInvariant<T>> for PhantomDataInvariant<T>
impl<T: ?Sized> PartialOrd<PhantomDataInvariant<T>> for PhantomDataInvariant<T>
sourcefn partial_cmp(&self, other: &PhantomDataInvariant<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &PhantomDataInvariant<T>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moreimpl<T: ?Sized> Copy for PhantomDataInvariant<T>
impl<T: ?Sized> Eq for PhantomDataInvariant<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for PhantomDataInvariant<T>
impl<T: ?Sized> Send for PhantomDataInvariant<T>where
T: Send,
impl<T> !Sync for PhantomDataInvariant<T>
impl<T: ?Sized> Unpin for PhantomDataInvariant<T>where
T: Unpin,
impl<T: ?Sized> UnwindSafe for PhantomDataInvariant<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> AsARef<T> for Twhere
T: ?Sized,
impl<T> AsARef<T> for Twhere
T: ?Sized,
sourcefn try_as_aref(this: &T) -> Result<ARef<'_, T>, BorrowError>
fn try_as_aref(this: &T) -> Result<ARef<'_, T>, BorrowError>
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