[][src]Struct generativity::Id

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

A phantomdata-like type taking a single invariant lifetime.

Used to manipulate and store the unique invariant lifetime produce by Guard.

Methods

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

pub unsafe fn new() -> Self[src]

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

Trait Implementations

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

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

impl<'id> Ord for Id<'id>[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl<'id> PartialOrd<Id<'id>> for Id<'id>[src]

impl<'id> Copy for Id<'id>[src]

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

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

impl<'id> Hash for Id<'id>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'id> Clone for Id<'id>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'id> Send for Id<'id>

impl<'id> Sync for Id<'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]