Expand description
Where the StableAbi trait is declared,as well as related types/traits.
Structs§
- AbiConsts
- Contains constants equivalent to the associated types in StableAbi.
- Sabi
Unsafe Opaque Field - Allows one to ensure that a
T
implementsStableAbi
, while storing an opaque layout instead of<T as StableAbi>::LAYOUT
. - Unsafe
Opaque Field - Allows one to create the
TypeLayout
for any typeT
, by pretending that it is a primitive type.
Traits§
- Prefix
Stable Abi - A type that only has a stable layout when a
PrefixRef
to it is used. - Stable
Abi - Represents a type whose layout is stable.
Functions§
- get_
prefix_ field_ type_ layout - Retrieves the TypeLayout of
T: PrefixStableAbi
, - get_
type_ layout - Retrieves the TypeLayout of
T: StableAbi
,