yazi-shared 26.5.6

Yazi shared library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::path::PathDyn;

pub struct Display<'a>(pub PathDyn<'a>);

impl std::fmt::Display for Display<'_> {
	fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
		match self.0 {
			PathDyn::Os(p) => write!(f, "{}", p.display()),
			PathDyn::Unix(p) => write!(f, "{}", p.display()),
		}
	}
}