A helper trait for converting from and to `TimeValue`.
| 9 | |
| 10 | /// A helper trait for converting from and to `TimeValue`. |
| 11 | pub trait TimeValueLike { |
| 12 | /// Converts from `TimeValue`. |
| 13 | fn from_time_value(tv: TimeValue) -> Self; |
| 14 | |
| 15 | /// Tries to convert into `TimeValue`. |
| 16 | fn try_into_time_value(self) -> AxResult<TimeValue>; |
| 17 | } |
| 18 | |
| 19 | impl TimeValueLike for TimeValue { |
| 20 | fn from_time_value(tv: TimeValue) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected