1 2 3 4 5 6 7 8 9 10 11 12 13 14
use predicate::{Predicate, RcPredicate}; #[deriving(Clone)] pub struct OrPredicate { pub left: RcPredicate, pub right: RcPredicate } pub trait ToOrPredicate { fn or(&self, val: RcPredicate) -> RcPredicate; } impl Predicate for OrPredicate { }