Trait ToStatic
pub trait ToStatic {
type Owned: 'static;
// Required method
fn to_static(&self) -> Self::Owned;
}Available on crate feature
rustls only.Expand description
Common trait for objects that can be transformed to a 'static version of self
Required Associated Types§
type Owned: 'static
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".