haloumi_core/lookups.rs
1//! Structs for handling lookups.
2
3/// Lightweight representation of a lookup that is cheap to copy
4#[derive(Debug, Copy, Clone)]
5pub struct LookupData<'syn, E> {
6 /// Name of the lookup.
7 pub name: &'syn str,
8 /// Expressions representing the arguments of the lookup.
9 pub arguments: &'syn [E],
10 /// Expressions representing the columns of the table.
11 pub table: &'syn [E],
12}