[][src]Struct abi_stable::type_layout::SharedVars

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

a few static slices that many types in the type_layout module contain ranges into, requiring this type to be passed as a parameter.

Methods

impl SharedVars[src]

pub const fn new(
    mono: &'static MonoSharedVars,
    type_layouts: RSlice<'static, TypeLayoutCtor>,
    constants: RSlice<'static, ConstGeneric>
) -> Self
[src]

pub fn strings(&self) -> &'static str[src]

A string containing many strings that types in the type_layout module contain ranges into.

pub fn lifetime_indices(&self) -> &'static [LifetimeIndexPair][src]

Many lifetimes that types in the type_layout module reference.

pub fn type_layouts(&self) -> &'static [TypeLayoutCtor][src]

Many TypeLayoutCtors that types in the type_layout module reference.

The StableAbi derive macro deduplicates identical looking types when constructing SharedVars.

pub fn constants(&self) -> &'static [ConstGeneric][src]

Many constants that types in the type_layout module contain ranges into.

Trait Implementations

impl Debug for SharedVars[src]

impl GetStaticEquivalent_ for SharedVars[src]

type StaticEquivalent = _static_SharedVars

impl Send for SharedVars[src]

impl SharedStableAbi for SharedVars[src]

type IsNonZeroType = False

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

type Kind = __ValueKind

The kind of abi stability of this type,there are 2: Read more

impl Sync for SharedVars[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<T> From<T> for T[src]

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

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

impl<This> StableAbi for This where
    This: SharedStableAbi<Kind = ValueKind>, 
[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