Struct core::kinds::marker::InvariantLifetimeExperimental
[-]
[+]
[src]
pub struct InvariantLifetime<'a>;
As InvariantType
, but for lifetime parameters. Using
InvariantLifetime<'a>
indicates that it is not ok to
substitute any other lifetime for 'a
besides its original
value. This is appropriate for cases where you have an unsafe
pointer that is actually a pointer into memory with lifetime 'a
,
and this pointer is itself stored in an inherently mutable
location (such as a Cell
).