oxilean_std/program_synthesis/tableoracle_traits.rs
1//! # TableOracle - Trait Implementations
2//!
3//! This module contains trait implementations for `TableOracle`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Oracle`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::functions::Oracle;
12use super::types::TableOracle;
13
14impl Oracle for TableOracle {
15 fn query(&self, input: &[String]) -> Option<String> {
16 self.table.get(input).cloned()
17 }
18}