MCPcopy Create free account
hub / github.com/dtolnay/thiserror / AsDisplay

Interface AsDisplay

src/display.rs:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5#[doc(hidden)]
6pub trait AsDisplay<'a>: Sealed {
7 // TODO: convert to generic associated type.
8 // https://github.com/dtolnay/thiserror/pull/253
9 type Target: Display;
10
11 fn as_display(&'a self) -> Self::Target;
12}
13
14impl<'a, T> AsDisplay<'a> for &T
15where

Callers

nothing calls this directly

Implementers 1

display.rssrc/display.rs

Calls

no outgoing calls

Tested by

no test coverage detected