Module abi_stable::abi_stability::stable_abi_trait [−][src]
Expand description
Where the StableAbi trait is declared,as well as related types/traits.
Structs
Contains constants equivalent to the associated types in StableAbi.
Allows one to ensure that a T
implements StableAbi
,
while storing an opaque layout instead of <T as StableAbi>::LAYOUT
.
Allows one to create the TypeLayout
for any type T
,
by pretending that it is a primitive type.
Constants
The TypeLayoutCtor of an extern "C" fn()
The TypeLayoutCtor of an unsafe extern "C" fn()
Traits
A type that only has a stable layout when a PrefixRef
to it is used.
Represents a type whose layout is stable.
Functions
Retrieves the TypeLayout of T: PrefixStableAbi
,
Retrieves the TypeLayout of T: StableAbi
,
Type Definitions
Getter for the TypeLayout of some type,wraps an extern "C" fn() -> &'static TypeLayout
.