pub trait Deprecatable {
// Provided method
fn deprecate(self) -> Deprecated<Self>
where Self: Sized { ... }
}Provided Methods§
fn deprecate(self) -> Deprecated<Self>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".