MCPcopy Create free account
hub / github.com/emwalker/digraph / try_from

Method try_from

backend/src/graphql/time.rs:63–66  ·  view source on GitHub ↗
(ts: Geotime)

Source from the content-addressed store, hash-verified

61 type Error = Error;
62
63 fn try_from(ts: Geotime) -> Result<Self> {
64 let dt = chrono::DateTime::try_from(ts)?;
65 Ok(DateTime(dt))
66 }
67}
68
69impl TryFrom<&types::Timerange> for Timerange {

Callers

nothing calls this directly

Calls 2

DateTimeClass · 0.85
try_intoMethod · 0.45

Tested by

no test coverage detected