Trait Object

Source
pub trait Object<I>: Clone + Debug {
    // Required methods
    fn to_item(&self) -> I;
    fn validate_self_consistency(&self) -> bool;
}

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl<T: Clone + Debug> Object<T> for (T, bool)

Implementors§