1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use crate;
/*
impl From<DataRecord> for SharedRecord {
fn from(value: DataRecord) -> Self {
let mut items = Vec::with_capacity(value.items.len());
for tdo in value.items {
items.push(SharedField::from(tdo))
}
Self { items }
}
}
impl From<SharedRecord> for DataRecord {
fn from(value: SharedRecord) -> Self {
let mut items = Vec::with_capacity(value.items.len());
for tdo in value.items {
items.push(DataField::from(tdo))
}
Self { items }
}
}
pub fn to_value_field_vec(value: Vec<SharedField>) -> Vec<DataField> {
let mut items = Vec::with_capacity(value.len());
for tdo in value {
items.push(DataField::from(tdo))
}
items
}
pub fn to_shared_field_vec(value: Vec<DataField>) -> Vec<SharedField> {
let mut items = Vec::with_capacity(value.len());
for tdo in value {
items.push(SharedField::from(tdo))
}
items
}
*/