Skip to content

Commit

Permalink
rename from Evaluate to Evaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed Feb 28, 2024
1 parent 9682b6b commit 14021cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ pub trait AsAny {
fn as_any(&self) -> &dyn Any;
}

type Evaluate = dyn Fn(&Event, &Vec<Box<dyn Renderable>>) -> Result<bool>;
type Evaluator = dyn Fn(&Event, &Vec<Box<dyn Renderable>>) -> Result<bool>;
type Output<T> = dyn Fn(&Vec<Box<dyn Renderable>>) -> Result<T>;

/// A core data structure to manage the hooks and state.
pub struct Prompt<T> {
renderables: Vec<Box<dyn Renderable>>,
evaluator: Box<Evaluate>,
evaluator: Box<Evaluator>,
output: Box<Output<T>>,
}

Expand Down

0 comments on commit 14021cb

Please sign in to comment.