Trait TypeExt

Source
pub(crate) trait TypeExt {
    // Required method
    fn elide_lifetimes(self) -> Self;
}

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl TypeExt for Type

Source§

fn elide_lifetimes(self) -> Self

Implementors§

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here