MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / TimeValueLike

Interface TimeValueLike

api/src/time.rs:11–17  ·  view source on GitHub ↗

A helper trait for converting from and to `TimeValue`.

Source from the content-addressed store, hash-verified

9
10/// A helper trait for converting from and to `TimeValue`.
11pub 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
19impl TimeValueLike for TimeValue {
20 fn from_time_value(tv: TimeValue) -> Self {

Callers

nothing calls this directly

Implementers 1

time.rsapi/src/time.rs

Calls

no outgoing calls

Tested by

no test coverage detected