Skip to main content

OpenEnum

Trait OpenEnum 

Source
pub trait OpenEnum:
    Send
    + Sync
    + 'static { }
Available on crate feature open-enums only.
Expand description

A trait whose trait objects are open enums.

This is implemented for the trait object of a trait marked with #[deser::open_enum], the implementations of the trait marked with #[deser::variant] are its variants (see OpenVariant). Its members are not public API.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§