This commit is contained in:
Yuriy Dupyn 2024-01-28 19:18:43 +01:00
parent ec0a4f2510
commit 8108b26af5
2 changed files with 6 additions and 6 deletions

View file

@ -41,15 +41,15 @@ impl FromIterator<Value> for Row {
impl Row {
pub fn new() -> Self {
Row(vec![])
Self(vec![])
}
pub fn new_from_insertion_values(insertion_values: InsertionValues) -> Self {
Row(insertion_values)
Self(insertion_values)
}
pub fn with_number_of_columns(number_of_columns: usize) -> Self {
Row(Vec::with_capacity(number_of_columns))
Self(Vec::with_capacity(number_of_columns))
}
pub fn push(&mut self, value: Value) {