Skip to main content

Oracle

Trait Oracle 

Source
pub trait Oracle {
    // Required method
    fn query(&self, input: &[String]) -> Option<String>;
}
Expand description

An oracle that can answer membership queries about the target function.

Required Methods§

Source

fn query(&self, input: &[String]) -> Option<String>

Given an input, return the expected output (consulting the oracle).

Implementors§