| 4 | |
| 5 | #[doc(hidden)] |
| 6 | pub 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 | |
| 14 | impl<'a, T> AsDisplay<'a> for &T |
| 15 | where |
nothing calls this directly
no outgoing calls
no test coverage detected