Skip to main content

TypeInterfaceMarker

Trait TypeInterfaceMarker 

Source
pub trait TypeInterfaceMarker { }
Expand description

Marker trait for type interface trait objects.

This is auto-implemented by the #[type_interface] macro for dyn Interface objects and is used to restrict type_cast and type_impls to interface casts.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§