Skip to main content

ConstDispatch

Trait ConstDispatch 

Source
pub trait ConstDispatch: MacroDerived { }
Expand description

Marker trait for types which may be fed to const_dispatch!.

It is not to be implemented manually: only through its eponymous #[derive(ConstDispatch)].

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: ?Sized> ConstDispatch for T
where Self: MacroDerived,