interstice-abi 0.5.0

WASM ABI types and host-call interfaces for the Interstice runtime
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::{IntersticeValue, Row};

impl IntersticeValue {
    pub fn from_row(row: &Row) -> Self {
        let mut values = Vec::with_capacity(1 + row.entries.len());
        values.push(row.primary_key.clone());
        values.extend_from_slice(&row.entries);
        IntersticeValue::Vec(values)
    }
}