pub trait ToStatic: Sealed {
type Static<'a>
where 'a: 'static;
// Required method
fn to_static(&self) -> Self::Static<'static>;
}Expand description
Helper trait to detach objects with lifetimes attached to a compiler or context.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".