Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
69
impl TryFrom<&types::Timerange> for Timerange {
Callers
nothing calls this directly
Calls
2
DateTime
Class · 0.85
try_into
Method · 0.45
Tested by
no test coverage detected