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

Method tuple

libs/@local/hashql/mir/src/builder/rvalue.rs:93–104  ·  view source on GitHub ↗
(
        self,
        operands: impl IntoIterator<Item = impl Into<Operand<'heap>>>,
    )

Source from the content-addressed store, hash-verified

91 /// Creates a tuple aggregate r-value.
92 #[must_use]
93 pub fn tuple(
94 self,
95 operands: impl IntoIterator<Item = impl Into<Operand<'heap>>>,
96 ) -> RValue<'heap> {
97 let mut ops = heap::Vec::new_in(self.interner.heap);
98 ops.extend(operands.into_iter().map(Into::into));
99
100 RValue::Aggregate(Aggregate {
101 kind: AggregateKind::Tuple,
102 operands: IdVec::from_raw(ops),
103 })
104 }
105
106 /// Creates a list aggregate r-value.
107 #[must_use]

Callers 15

empty_tuple_is_zeroFunction · 0.45
union_uses_coverFunction · 0.45
recursive_type_detectedFunction · 0.45
env_domainMethod · 0.45
eq_safe_cross_categoryFunction · 0.45

Calls 4

AggregateClass · 0.85
extendMethod · 0.45
mapMethod · 0.45
into_iterMethod · 0.45