[][src]Module abi_stable::prefix_type

Types,traits,and functions used by prefix-types.

Structs

FieldAccessibility
PTField

Represents a field of a prefix-type,for use in error messages.

PTStructLayout

Represents the layout of a prefix-type,for use in error messages.

PTStructLayoutParams

Parameters to construct a PTStructLayout.

WithMetadataFor

The prefix-type metadata for T. This is only constructed in PrefixTypeTrait::METADATA.

WithMetadata_

Wraps a prefix-type,with extra metadata about field count and layout.

Enums

IsAccessible

Whether a field is accessible.

IsConditional

Whether a field is conditional, whether it has a #[sabi(accessible_if=" expression ")] attribute or not.

Traits

PrefixTypeTrait

For types deriving StableAbi with #[sabi(kind(Prefix(..)))].

Functions

panic_on_missing_field_ty

Used to panic with an error message informing the user that a field is expected to be on the T type when it's not.

panic_on_missing_field_val

Used to panic with an error message informing the user that a field is expected to be on expected when it's not.

panic_on_missing_fieldname

Used to panic with an error message informing the user that a field is expected to be on the T type when it's not.

Type Definitions

WithMetadata

Type alias for WithMetadata_<T,P> that passes ::Prefix as the second type parameter.