1 2 3 4 5 6 7 8 9
use crate::resolved_context::ResolvedContext; use anyhow::Result; pub type Predicate = Box<dyn PredicateTrait>; #[typetag::serde] pub trait PredicateTrait: Send + Sync { fn test(&self, context: &ResolvedContext) -> Result<bool>; }