1 2 3 4 5 6 7 8 9 10 11 12 13 14
use super::{super::problem::*, receiver::*}; // // FailFast // /// [ProblemReceiver] that fails on the first given problem. pub struct FailFast; impl ProblemReceiver for FailFast { fn give(&mut self, problem: Problem) -> Result<(), Problem> { Err(problem) } }