(self)
| 958 | } |
| 959 | |
| 960 | fn encoded(self) -> &'static [u8] { |
| 961 | match self { |
| 962 | Self::Tree => b"40000", |
| 963 | Self::Regular => b"100644", |
| 964 | Self::Executable => b"100755", |
| 965 | Self::Symlink => b"120000", |
| 966 | Self::Gitlink => b"160000", |
| 967 | } |
| 968 | } |
| 969 | |
| 970 | fn is_tree(self) -> bool { |
| 971 | matches!(self, Self::Tree) |