pub struct Lifetime<'a>(/* private fields */);Expand description
Single lifetime type ID.
Available for all types implementing StaticForm.
§Examples
use dungeon_cell::vtable::{Lifetime, Inspect};
assert_ne!(
<i32 as Inspect<Lifetime<'static>>>::inspect(),
<f32 as Inspect<Lifetime<'static>>>::inspect()
);Trait Implementations§
Source§impl<'a, T: StaticForm<'a>> Inspect<Lifetime<'a>> for T
impl<'a, T: StaticForm<'a>> Inspect<Lifetime<'a>> for T
Source§impl<'a> Ord for Lifetime<'a>
impl<'a> Ord for Lifetime<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for Lifetime<'a>
impl<'a> PartialOrd for Lifetime<'a>
impl<'a> Copy for Lifetime<'a>
impl<'a> Eq for Lifetime<'a>
impl<'a> StructuralPartialEq for Lifetime<'a>
Auto Trait Implementations§
impl<'a> Freeze for Lifetime<'a>
impl<'a> !RefUnwindSafe for Lifetime<'a>
impl<'a> Send for Lifetime<'a>
impl<'a> !Sync for Lifetime<'a>
impl<'a> Unpin for Lifetime<'a>
impl<'a> UnwindSafe for Lifetime<'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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Dynamic<Bound<Send, __, Copy, Clone, Unpin, Debug>> for T
impl<T> Dynamic<Bound<Send, __, Copy, Clone, Unpin, Debug>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, Copy, Clone, Unpin, __>> for T
impl<T> Dynamic<Bound<Send, __, Copy, Clone, Unpin, __>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, Copy, Clone, __, Debug>> for T
impl<T> Dynamic<Bound<Send, __, Copy, Clone, __, Debug>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, Copy, Clone, __, __>> for T
impl<T> Dynamic<Bound<Send, __, Copy, Clone, __, __>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, Copy, __, Unpin, Debug>> for T
impl<T> Dynamic<Bound<Send, __, Copy, __, Unpin, Debug>> for T
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, Copy, __, Unpin, __>> for T
impl<T> Dynamic<Bound<Send, __, Copy, __, Unpin, __>> for T
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, Copy, __, __, Debug>> for T
impl<T> Dynamic<Bound<Send, __, Copy, __, __, Debug>> for T
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, Copy, __, __, __>> for T
impl<T> Dynamic<Bound<Send, __, Copy, __, __, __>> for T
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, __, Clone, Unpin, Debug>> for T
impl<T> Dynamic<Bound<Send, __, __, Clone, Unpin, Debug>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, __, Clone, Unpin, __>> for T
impl<T> Dynamic<Bound<Send, __, __, Clone, Unpin, __>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, __, Clone, __, Debug>> for T
impl<T> Dynamic<Bound<Send, __, __, Clone, __, Debug>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, __, Clone, __, __>> for T
impl<T> Dynamic<Bound<Send, __, __, Clone, __, __>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, __, __, Unpin, Debug>> for T
impl<T> Dynamic<Bound<Send, __, __, __, Unpin, Debug>> for T
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, __, __, Unpin, __>> for T
impl<T> Dynamic<Bound<Send, __, __, __, Unpin, __>> for T
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, __, __, __, Debug>> for T
impl<T> Dynamic<Bound<Send, __, __, __, __, Debug>> for T
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<Send, __, __, __, __, __>> for Twhere
T: Send,
impl<T> Dynamic<Bound<Send, __, __, __, __, __>> for Twhere
T: Send,
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, Copy, Clone, Unpin, Debug>> for T
impl<T> Dynamic<Bound<__, __, Copy, Clone, Unpin, Debug>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, Copy, Clone, Unpin, __>> for T
impl<T> Dynamic<Bound<__, __, Copy, Clone, Unpin, __>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, Copy, Clone, __, Debug>> for T
impl<T> Dynamic<Bound<__, __, Copy, Clone, __, Debug>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, Copy, Clone, __, __>> for T
impl<T> Dynamic<Bound<__, __, Copy, Clone, __, __>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, Copy, __, Unpin, Debug>> for T
impl<T> Dynamic<Bound<__, __, Copy, __, Unpin, Debug>> for T
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, Copy, __, Unpin, __>> for T
impl<T> Dynamic<Bound<__, __, Copy, __, Unpin, __>> for T
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, Copy, __, __, Debug>> for T
impl<T> Dynamic<Bound<__, __, Copy, __, __, Debug>> for T
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, Copy, __, __, __>> for Twhere
T: Copy,
impl<T> Dynamic<Bound<__, __, Copy, __, __, __>> for Twhere
T: Copy,
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, __, Clone, Unpin, Debug>> for T
impl<T> Dynamic<Bound<__, __, __, Clone, Unpin, Debug>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, __, Clone, Unpin, __>> for T
impl<T> Dynamic<Bound<__, __, __, Clone, Unpin, __>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, __, Clone, __, Debug>> for T
impl<T> Dynamic<Bound<__, __, __, Clone, __, Debug>> for T
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, __, Clone, __, __>> for Twhere
T: Clone,
impl<T> Dynamic<Bound<__, __, __, Clone, __, __>> for Twhere
T: Clone,
Source§unsafe fn clone_unchecked(this: &T) -> T
unsafe fn clone_unchecked(this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, __, __, Unpin, Debug>> for T
impl<T> Dynamic<Bound<__, __, __, __, Unpin, Debug>> for T
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, __, __, Unpin, __>> for Twhere
T: Unpin,
impl<T> Dynamic<Bound<__, __, __, __, Unpin, __>> for Twhere
T: Unpin,
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, __, __, __, Debug>> for Twhere
T: Debug,
impl<T> Dynamic<Bound<__, __, __, __, __, Debug>> for Twhere
T: Debug,
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>
Unsafe form of
Self::debug(). Read moreSource§impl<T> Dynamic<Bound<__, __, __, __, __, __>> for T
impl<T> Dynamic<Bound<__, __, __, __, __, __>> for T
Source§unsafe fn clone_unchecked(_this: &T) -> T
unsafe fn clone_unchecked(_this: &T) -> T
Unsafe form of
Self::clone(). Read moreSource§unsafe fn debug_unchecked(
_this: &T,
_f: &mut Formatter<'_>,
) -> Result<(), Error>
unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>
Unsafe form of
Self::debug(). Read more