Skip to main content

file_storage/path/core/
display.rs

1use crate::{FilePath, FolderPath, StoragePath};
2use std::fmt::{Display, Formatter};
3
4impl Display for StoragePath {
5    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
6        f.write_str(self.path())
7    }
8}
9
10impl Display for FilePath {
11    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
12        f.write_str(self.as_str())
13    }
14}
15
16impl Display for FolderPath {
17    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
18        f.write_str(self.as_str())
19    }
20}