Skip to main content

Deprecatable

Trait Deprecatable 

Source
pub trait Deprecatable {
    // Provided method
    fn deprecate(self) -> Deprecated<Self>
       where Self: Sized { ... }
}

Provided Methods§

Source

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".

Implementors§

Source§

impl<T> Deprecatable for T