Trait Lifetime

Source
pub trait Lifetime<'a, SELF: Sealed = Bounds<&'a Self>> {
    type Item;
}
Expand description

Stable workaround for lifetime GATs.

See the GAT tracking issue and stabilisation PR, and in particular this blog post for details on this workaround.

Required Associated Types§

Source

type Item

The inner item, the lifetime of which should be tied to Self.

Implementors§

Source§

impl<'a, 'b, const N: usize> Lifetime<'a> for &'b Saf<N>

Source§

type Item = SafView<'a, N>

Source§

impl<'a, 'b, const N: usize> Lifetime<'a> for &'b Site<N>

Source§

type Item = SiteView<'a, N>

Source§

impl<'a, 'b, const N: usize> Lifetime<'a> for SafView<'b, N>

Source§

type Item = SafView<'a, N>

Source§

impl<'a, 'b, const N: usize> Lifetime<'a> for SiteView<'b, N>

Source§

type Item = SiteView<'a, N>

Source§

impl<'a, const N: usize> Lifetime<'a> for Saf<N>

Source§

type Item = SafView<'a, N>

Source§

impl<'a, const N: usize> Lifetime<'a> for Site<N>

Source§

type Item = SiteView<'a, N>