dyn_compatible 0.1.4

Dyn compatible marker
Documentation
1
2
3
4
5
6
7
8
9
10
//! Provider of [`NotDyn`].

/// Super trait for not dyn compatible traits.
pub trait NotDyn {
    /// Dummy method to make this trait not dyn compatible.
    #[doc(hidden)]
    fn __do_not_call() {}
}

impl<T: ?Sized> NotDyn for T {}