]>
git.proxmox.com Git - rustc.git/blob - vendor/thiserror/src/display.rs
2 use std
::path
::{self, Path, PathBuf}
;
4 pub trait DisplayAsDisplay
{
5 fn as_display(&self) -> Self;
8 impl<T
: Display
> DisplayAsDisplay
for &T
{
9 fn as_display(&self) -> Self {
14 pub trait PathAsDisplay
{
15 fn as_display(&self) -> path
::Display
<'_
>;
18 impl PathAsDisplay
for Path
{
19 fn as_display(&self) -> path
::Display
<'_
> {
24 impl PathAsDisplay
for PathBuf
{
25 fn as_display(&self) -> path
::Display
<'_
> {