[][src]Struct generativity::Guard

pub struct Guard<'id> { /* fields omitted */ }

An invariant lifetime phantomdata that is guaranteed to be unique.

In effect, this means that 'id is a "generative brand"

Methods

impl<'id> Guard<'id>[src]

pub unsafe fn new(id: Id<'id>) -> Guard<'id>[src]

Do not use this function; use the guard! macro instead.

Trait Implementations

impl<'id> Debug for Guard<'id>[src]

impl<'id> PartialEq<Guard<'id>> for Guard<'id>[src]

impl<'id> Eq for Guard<'id>[src]

impl<'id> From<Guard<'id>> for Id<'id>[src]

Auto Trait Implementations

impl<'id> Send for Guard<'id>

impl<'id> Sync for Guard<'id>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]