Trait ConstSwitch

Source
pub trait ConstSwitch:
    Debug
    + Copy
    + Send
    + Sync
    + 'static {
    const ENABLED: bool;
}
Expand description

Trait to allow const bool values in generics.

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§