Trait ToStatic
pub trait ToStatic: Clone {
type Static: 'static + Clone + Send + Sync;
// Required method
fn to_static(&self) -> Self::Static;
}
Expand description
A trait for converting types with lifetime parameters to equivalent types with ’static lifetime.
Required Associated Types§
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.