(value: u8)
| 34 | type Error = PristineError; |
| 35 | |
| 36 | fn try_from(value: u8) -> Result<Self, Self::Error> { |
| 37 | match value { |
| 38 | 0 => Ok(Self::File), |
| 39 | 1 => Ok(Self::Directory), |
| 40 | other => Err(invalid_path_claim_data(format!( |
| 41 | "unknown path-claim kind {other}" |
| 42 | ))), |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /// State contributed by one path-claim transition. |
nothing calls this directly
no test coverage detected