[][src]Struct abi_stable::type_layout::LifetimeIndex

#[repr(transparent)]pub struct LifetimeIndex { /* fields omitted */ }

Which lifetime is being referenced by a field. Allows lifetimes to be renamed,so long as the "same" lifetime is being referenced.

Implementations

impl LifetimeIndex[src]

pub const NONE: Self[src]

A sentinel value to represent the absence of a lifetime.

Making this be all zeroes allows using u32::leading_zeros to calculate the length of LifetimeIndexArray .

pub const ANONYMOUS: Self[src]

A lifetime parameter in a function pointer that is only used once, and does not appear in the return type.

pub const STATIC: Self[src]

A static lifetime.

pub const MAX_LIFETIME_PARAM: u8[src]

The maximum number of lifetime parameters.

pub const fn Param(index: u8) -> LifetimeIndex[src]

Constructs a LifetimeIndex to the nth lifetime parameter of a type.

pub fn to_param(self) -> Option<u8>[src]

Gets which lifetiem parameter this is. Returns None if it's not a lifetime parameter.

pub const fn from_u4(bits: u8) -> Self[src]

Constructs a LifetimeIndex from its representation.

pub const fn to_u4(self) -> u8[src]

Converts a LifetimeIndex into its representation.

Trait Implementations

impl Clone for LifetimeIndex[src]

impl Copy for LifetimeIndex[src]

impl Debug for LifetimeIndex[src]

impl Display for LifetimeIndex[src]

impl Eq for LifetimeIndex[src]

impl GetStaticEquivalent_ for LifetimeIndex[src]

type StaticEquivalent = _static_LifetimeIndex

impl PartialEq<LifetimeIndex> for LifetimeIndex[src]

impl StableAbi for LifetimeIndex[src]

type IsNonZeroType = <u8 as __StableAbi>::IsNonZeroType

Whether this type has a single invalid bit-pattern. Read more

impl StructuralEq for LifetimeIndex[src]

impl StructuralPartialEq for LifetimeIndex[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<'a, T> BorrowOwned<'a> for T where
    T: 'a + Clone
[src]

type ROwned = T

The owned type, stored in RCow::Owned

type RBorrowed = &'a T

The borrowed type, stored in RCow::Borrowed

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

impl<T> GetWithMetadata for T[src]

type ForSelf = WithMetadata_<T, T>

This is always WithMetadata_<Self, Self>

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<This> TransmuteElement for This where
    This: ?Sized
[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> 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, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The error type returned when the conversion fails.

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

type Type = T

The same type as Self. Read more

impl<This> ValidTag_Bounds for This where
    This: Debug + Clone + PartialEq<This>, 
[src]