pub struct PhantomInvariantLifetime<'a>(/* private fields */);๐ฌThis is a nightly-only experimental API. (
phantom_variance_markers #135806)Expand description
Zero-sized type used to mark a lifetime as invariant.
Invariant lifetimes must be live for the exact length declared, neither shorter nor longer. See the reference for more information.
ยงLayout
For all 'a, the following are guaranteed:
size_of::<PhantomInvariantLifetime<'a>>() == 0align_of::<PhantomInvariantLifetime<'a>>() == 1
Implementationsยง
Trait Implementationsยง
Sourceยงimpl<'a> Clone for PhantomInvariantLifetime<'a>
impl<'a> Clone for PhantomInvariantLifetime<'a>
Sourceยงfn clone(&self) -> PhantomInvariantLifetime<'a>
fn clone(&self) -> PhantomInvariantLifetime<'a>
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)where
Self:,
fn clone_from(&mut self, source: &Self)where
Self:,
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for PhantomInvariantLifetime<'_>
impl Debug for PhantomInvariantLifetime<'_>
Sourceยงimpl<'a> Default for PhantomInvariantLifetime<'a>
impl<'a> Default for PhantomInvariantLifetime<'a>
Sourceยงfn default() -> PhantomInvariantLifetime<'a>
fn default() -> PhantomInvariantLifetime<'a>
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<'a> Hash for PhantomInvariantLifetime<'a>
impl<'a> Hash for PhantomInvariantLifetime<'a>
Sourceยงimpl<'a> Ord for PhantomInvariantLifetime<'a>
impl<'a> Ord for PhantomInvariantLifetime<'a>
Sourceยงfn cmp(&self, other: &PhantomInvariantLifetime<'a>) -> Ordering
fn cmp(&self, other: &PhantomInvariantLifetime<'a>) -> Ordering
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Compares and returns the maximum of two values. Read more
Sourceยงimpl<'a> PartialEq for PhantomInvariantLifetime<'a>
impl<'a> PartialEq for PhantomInvariantLifetime<'a>
Sourceยงfn eq(&self, other: &PhantomInvariantLifetime<'a>) -> bool
fn eq(&self, other: &PhantomInvariantLifetime<'a>) -> bool
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Tests for
self and other values to be equal, and is used by ==.Sourceยงimpl<'a> PartialOrd for PhantomInvariantLifetime<'a>
impl<'a> PartialOrd for PhantomInvariantLifetime<'a>
Sourceยงfn partial_cmp(&self, other: &PhantomInvariantLifetime<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &PhantomInvariantLifetime<'a>) -> Option<Ordering>
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
1.0.0 ยท Sourceยงfn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
1.0.0 ยท Sourceยงfn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
impl<'a> Copy for PhantomInvariantLifetime<'a>
impl<'a> Eq for PhantomInvariantLifetime<'a>
impl<'a> StructuralPartialEq for PhantomInvariantLifetime<'a>
impl Variance for PhantomInvariantLifetime<'_>
Auto Trait Implementationsยง
impl<'a> Freeze for PhantomInvariantLifetime<'a>
impl<'a> RefUnwindSafe for PhantomInvariantLifetime<'a>
impl<'a> Send for PhantomInvariantLifetime<'a>
impl<'a> Sync for PhantomInvariantLifetime<'a>
impl<'a> Unpin for PhantomInvariantLifetime<'a>
impl<'a> UnsafeUnpin for PhantomInvariantLifetime<'a>
impl<'a> UnwindSafe for PhantomInvariantLifetime<'a>
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
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Mutably borrows from an owned value. Read more