pub fn filter<F>(&self, filter: F) -> Debugger
    where
        F: Fn(&Driver) -> bool,
    {
        Debugger {
            breakpoints: self.breakpoints.clone(),
            breaked_drivers: self.breaked_drivers.clone(),
            drivers: self
                .drivers
                .iter()
                .filter(|driver| filter(driver))
                .cloned()
                .collect::<Vec<Driver>>(),
            killpoints: self.killpoints.clone(),
            merge_points: self.merge_points.clone(),
            merged_drivers: self.merged_drivers.clone(),
        }
    }
/// Apply a filter to this Debugger's drivers, and return a new Debugger
/// with only those Debuggers
Apply a filter to this Debugger's drivers, and return a new Debugger
with only those Debuggers
Apply a filter to this Debugger ' s drivers and return a new Debugger with only those Debuggers
pub fn filter<F>(&self, filter: F) -> Debugger
    where
        F: Fn(&Driver) -> bool,
    {
        Debugger {
            breakpoints: self.breakpoints.clone(),
            breaked_drivers: self.breaked_drivers.clone(),
            drivers: self
                .drivers
                .iter()
                .filter(|driver| filter(driver))
                .cloned()
                .collect::<Vec<Driver>>(),
            killpoints: self.killpoints.clone(),
            merge_points: self.merge_points.clone(),
            merged_drivers: self.merged_drivers.clone(),
        }
    }
pub fn filter < F > ( & self , filter : F ) -> Debugger where F : Fn ( & Driver ) -> bool , { Debugger { breakpoints : self . breakpoints . clone ( ) , breaked_drivers : self . breaked_drivers . clone ( ) , drivers : self . drivers . iter ( ) . filter ( | driver | filter ( driver ) ) . cloned ( ) . collect :: < Vec < Driver > > ( ) , killpoints : self . killpoints . clone ( ) , merge_points : self . merge_points . clone ( ) , merged_drivers : self . merged_drivers . clone ( ) , } }
Apply a filter to this Debugger's drivers, and return a new Debugger
with only those Debuggers
Apply a filter to this Debugger ' s drivers and return a new Debugger with only those Debuggers
&self
filter
F