pub trait Object<I>: Clone + Debug {
// Required methods
fn to_item(&self) -> I;
fn validate_self_consistency(&self) -> bool;
}
Required Methods§
fn to_item(&self) -> I
fn validate_self_consistency(&self) -> bool
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.