grafeo-common¶
Foundation types, memory allocators and utilities.
Types¶
NodeId / EdgeId¶
Value¶
let v = Value::Int64(42);
let v = Value::String("hello".into());
let v = Value::List(vec![Value::Int64(1), Value::Int64(2)].into());
LogicalType¶
let t = LogicalType::Int64;
let t = LogicalType::String;
let t = LogicalType::List(Box::new(LogicalType::Int64));
Memory¶
use grafeo_common::memory::{Arena, ObjectPool};
use grafeo_common::types::EpochId;
let arena = Arena::new(EpochId(0));
let data = arena.alloc_value(MyStruct::new());