MCPcopy Create free account
hub / github.com/hashintel/hash / timestamp_value

Function timestamp_value

libs/@local/hashql/eval/tests/orchestrator/inputs.rs:24–29  ·  view source on GitHub ↗

Constructs `Opaque(Timestamp, Integer(ms))`.

(heap: &Heap, ms: i128)

Source from the content-addressed store, hash-verified

22
23/// Constructs `Opaque(Timestamp, Integer(ms))`.
24fn timestamp_value(heap: &Heap, ms: i128) -> Value<'_, &Heap> {
25 Value::Opaque(value::Opaque::new(
26 sym::path::Timestamp,
27 Rc::new_in(Value::Integer(value::Int::from(ms)), heap),
28 ))
29}
30
31/// Constructs `Opaque(UnboundedTemporalBound, Unit)`.
32fn unbounded_bound(heap: &Heap) -> Value<'_, &Heap> {

Callers 3

exclusive_boundFunction · 0.85
axis_interval_to_valueFunction · 0.85

Calls 3

IntegerClass · 0.85
OpaqueClass · 0.50
fromFunction · 0.50

Tested by

no test coverage detected