We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc9bd2f commit 08037bcCopy full SHA for 08037bc
1 file changed
crates/sats/src/product_value.rs
@@ -69,6 +69,14 @@ impl From<ColId> for InvalidFieldError {
69
}
70
71
impl ProductValue {
72
+ /// Pushes a single value to he product.
73
+ pub fn push(self, val: impl Into<AlgebraicValue>) -> Self {
74
+ let mut vals: Vec<_> = self.elements.into();
75
+ vals.reserve(1);
76
+ vals.push(val.into());
77
+ Self::from(vals)
78
+ }
79
+
80
/// Borrow the value at field of `self` identified by `col_pos`.
81
///
82
/// The `name` is non-functional and is only used for error-messages.
0 commit comments