Module abi_stable::erased_types
source · Expand description
Types and traits related to type erasure.
Re-exports§
pub use crate::type_level::downcasting::TD_CanDowncast;
pub use crate::type_level::downcasting::TD_Opaque;
Modules§
- Types that implement
InterfaceType
, used in examples. - Ffi-safe trait objects for individual traits.
Structs§
- DynTrait implements ffi-safe trait objects, for a selection of traits.
- Describes which traits are required and enabled by the
I:
InterfaceType
that thisRequiredTraits
is created from. - Metadata about a type.
- Error for
DynTrait<_>
being downcasted into the wrong type with one of the*downcasted*
methods. - A pointer to the vtable of
DynTrait
.
Traits§
- Describes how
D
is deserialized, using a proxy to do so. - Defines the usable/required traits when creating a
DynTrait<Pointer<()>, ThisInterfaceType>
. - The way to specify the expected
Iterator::Item
type for anInterfaceType
. - Gets the expected
Iterator::Item
type for anInterfaceType
, defaulting to()
if it doesn’t requireIterator
to be implemented. - For constructing a
RequiredTraits
constant. - Csontructs a vtable.
- Determines the intermediate type a
SerializeType
implementor is converted into, and is then serialized. - Describes how a type is serialized by
DynTrait
.