pub fn filter_by_paths(self, paths: &[SPPath]) -> SPState {
        let mut kv = self.extract();
        let filtered = kv
            .into_iter()
            .filter(|(k, _)| paths.iter().any(|p| k == p))
            .collect();
        SPState::new_from_owned_values(filtered)
    }
/// Given a list of paths, consume this state and return a new
/// state that only contain the exact paths given.
Given a list of paths, consume this state and return a new
state that only contain the exact paths given.
Given a list of paths consume this state and return a new state that only contain the exact paths given .
pub fn filter_by_paths(self, paths: &[SPPath]) -> SPState {
        let mut kv = self.extract();
        let filtered = kv
            .into_iter()
            .filter(|(k, _)| paths.iter().any(|p| k == p))
            .collect();
        SPState::new_from_owned_values(filtered)
    }
pub fn filter_by_paths ( self , paths : & [ SPPath ] ) -> SPState { let mut kv = self . extract ( ) ; let filtered = kv . into_iter ( ) . filter ( | ( k , _ ) | paths . iter ( ) . any ( | p | k == p ) ) . collect ( ) ; SPState :: new_from_owned_values ( filtered ) }
Given a list of paths, consume this state and return a new
state that only contain the exact paths given.
Given a list of paths consume this state and return a new state that only contain the exact paths given .
self
paths
&[SPPath]