[][src]Struct abi_stable::type_layout::TypeLayoutRange

#[repr(C)]pub struct TypeLayoutRange { /* fields omitted */ }

A range of indices into a slice of TypeLayoutCtor which can store up to five indices inline, requiring additional TypeLayoutCtor to be stored contiguously after the fourth one in the slice.

Implementations

impl TypeLayoutRange[src]

pub const EMPTY: Self[src]

An empty TypeLayoutRange.

pub const STORED_INLINE: usize[src]

How many indices can be stored inline.

pub const fn with_up_to_5(mut len: usize, indices: [u16; 5]) -> Self[src]

Constructs a TypeLayoutRange with up to five type layout indices.

pub const fn with_more_than_5(len: usize, indices: [u16; 5]) -> Self[src]

Constructs a TypeLayoutRange with more than five type layout indices, in which the indices from indices[4] onwards are stored contiguously in the slice.

pub const fn from_u64(bits: u64) -> Self[src]

Constructs this TypeLayoutRange from its representation.

pub const fn to_u64(&self) -> u64[src]

Converts this TypeLayoutRange into its representation.

pub const fn len(&self) -> usize[src]

The amount of TypeLayoutCtor in this range.

impl TypeLayoutRange[src]

pub fn expand<'a>(
    &self,
    type_layouts: &'a [TypeLayoutCtor]
) -> MultipleTypeLayouts<'a>
[src]

Expands this TypeLayoutRange into a MultipleTypeLayouts<'a>.

Trait Implementations

impl Clone for TypeLayoutRange[src]

impl Copy for TypeLayoutRange[src]

impl Debug for TypeLayoutRange[src]

impl Eq for TypeLayoutRange[src]

impl GetStaticEquivalent_ for TypeLayoutRange[src]

type StaticEquivalent = _static_TypeLayoutRange

impl Ord for TypeLayoutRange[src]

impl PartialEq<TypeLayoutRange> for TypeLayoutRange[src]

impl PartialOrd<TypeLayoutRange> for TypeLayoutRange[src]

impl StableAbi for TypeLayoutRange[src]

type IsNonZeroType = False

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

impl StructuralEq for TypeLayoutRange[src]

impl StructuralPartialEq for TypeLayoutRange[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<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]