[][src]Trait abi_stable::abi_stability::stable_abi_trait::PrefixStableAbi

pub unsafe trait PrefixStableAbi: GetStaticEquivalent_ {
    type IsNonZeroType: Boolean;

    pub const LAYOUT: &'static TypeLayout;
    pub const ABI_CONSTS: AbiConsts;
}

A type that only has a stable layout when a PrefixRef to it is used.

Types that implement this trait usually have a _Prefix suffix.

Safety

This trait can only be implemented by the StableAbi derive on types that also use the #[sabi(kind(Prefix))] attribute, implementing the trait for a macro generated type.

Associated Types

type IsNonZeroType: Boolean[src]

Whether this type has a single invalid bit-pattern.

Loading content...

Associated Constants

pub const LAYOUT: &'static TypeLayout[src]

The layout of the type, provided by implementors.

pub const ABI_CONSTS: AbiConsts[src]

const-equivalents of the associated types.

Loading content...

Implementors

impl PrefixStableAbi for Module_Prefix where
    Module: PrefixTypeTrait
[src]

type IsNonZeroType = False

impl PrefixStableAbi for ErasedPrefix[src]

type IsNonZeroType = False

Loading content...