pub(crate) trait TypeExt {
// Required method
fn elide_lifetimes(self) -> Self;
}
Required Methods§
Sourcefn elide_lifetimes(self) -> Self
fn elide_lifetimes(self) -> Self
Replaces all explicit lifetimes in self
with elided ('_
) lifetimes
This is useful if Self
is used in const
context, where explicit
lifetimes are not allowed (yet).
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.