diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-05-03 00:15:02 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-05-03 00:20:36 +0300 |
| commit | 84ac3652415b662aae9580c008a5aa996d58c9f4 (patch) | |
| tree | 3d39fe6ce5da76a1102458c120480e4190a70fcf /log_db/src/record.rs | |
| parent | e17048eddfe2df86abd2d498da2a33b9c3dd8a72 (diff) | |
Rename to AutereDB
Diffstat (limited to 'log_db/src/record.rs')
| -rw-r--r-- | log_db/src/record.rs | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/log_db/src/record.rs b/log_db/src/record.rs deleted file mode 100644 index b349853..0000000 --- a/log_db/src/record.rs +++ /dev/null @@ -1,38 +0,0 @@ -use super::*; - -pub struct Record { - values: Vec<Value>, -} - -impl Record { - pub fn values(&self) -> &[Value] { - &self.values - } -} - -impl IntoIterator for Record { - type Item = Value; - type IntoIter = std::vec::IntoIter<Self::Item>; - - fn into_iter(self) -> Self::IntoIter { - self.values.into_iter() - } -} - -impl From<Vec<Value>> for Record { - fn from(values: Vec<Value>) -> Self { - Record { values } - } -} - -impl From<Record> for Vec<Value> { - fn from(record: Record) -> Self { - record.values - } -} - -impl From<Row> for Record { - fn from(row: Row) -> Self { - Record { values: row.values } - } -} |
