MCPcopy Create free account
hub / github.com/apache/datafusion / try_from

Method try_from

datafusion/ffi/src/expr/interval.rs:35–40  ·  view source on GitHub ↗
(value: &Interval)

Source from the content-addressed store, hash-verified

33impl TryFrom<&Interval> for FFI_Interval {
34 type Error = DataFusionError;
35 fn try_from(value: &Interval) -> Result<Self, Self::Error> {
36 let upper = value.upper().try_into()?;
37 let lower = value.lower().try_into()?;
38
39 Ok(FFI_Interval { upper, lower })
40 }
41}
42impl TryFrom<Interval> for FFI_Interval {
43 type Error = DataFusionError;

Callers

nothing calls this directly

Calls 2

upperMethod · 0.80
lowerMethod · 0.80

Tested by

no test coverage detected