Skip to main content

DisplayProxy

Trait DisplayProxy 

Source
pub trait DisplayProxy {
    type D<'a>: Display + Debug
       where Self: 'a;

    // Required method
    fn display<'a>(&'a self) -> Self::D<'a>;
}
Expand description

Make a type display-able.

Required Associated Types§

Source

type D<'a>: Display + Debug where Self: 'a

The type that does the displaying.

Required Methods§

Source

fn display<'a>(&'a self) -> Self::D<'a>

Return a display-able reference.

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<A: Asset> DisplayProxy for Handle<A>

Source§

type D<'a> = HandleDisplay<'a, A>

Source§

fn display<'a>(&'a self) -> Self::D<'a>

Implementors§