[][src]Module abi_stable::sabi_trait

Contains items related to the #[sabi_trait] attribute.

Re-exports

pub use crate::type_level::unerasability::TU_Unerasable;
pub use crate::type_level::unerasability::TU_Opaque;

Modules

doc_examples

Examples of #[sabi_trait] generated trait objects,for the documentation.

prelude

A prelude for modules using #[sabi_trait] generated traits/trait objects.

Structs

RObject

RObject implements ffi-safe trait objects,for a minimal selection of traits.

UneraseError

Error for RObject<_> being unerased into the wrong type with one of the *unerased* methods.

VTableTO

This is used to safely pass the vtable to #[sabi_trait] generated trait objects, using <Trait>_CTO::from_const( &value, <Trait>_MV::VTABLE ).

Traits

ReborrowBounds

This is used to make sure that reborrowing does not change the Send-ness or Sync-ness of the pointer.

Type Definitions

VTableTO_DT

The VTableTO passed to #[sabi_trait] generated trait objects that have DynTrait as their backend.

VTableTO_RO

The VTableTO passed to #[sabi_trait] generated trait objects that have RObject as their backend.