pub fn delete_out_of_bounds_proxies(
        &self,
        proxies: &SAPProxies,
        existing_proxies: &mut BitVec,
        layer_depth: i8,
    ) -> (usize, usize) {
        let mut num_subproper_proxies_deleted = 0;
        let mut num_proxies_deleted = 0;
        for endpoint in &self.endpoints {
            if endpoint.value < self.min_bound {
                let proxy_id = endpoint.proxy();
                if endpoint.is_end() && existing_proxies[proxy_id as usize] {
                    existing_proxies.set(proxy_id as usize, false);

                    if proxies[proxy_id].layer_depth <= layer_depth {
                        num_subproper_proxies_deleted += 1;
                    }

                    num_proxies_deleted += 1;
                }
            } else {
                break;
            }
        }

        for endpoint in self.endpoints.iter().rev() {
            if endpoint.value > self.max_bound {
                let proxy_id = endpoint.proxy();
                if endpoint.is_start() && existing_proxies[proxy_id as usize] {
                    existing_proxies.set(proxy_id as usize, false);

                    if proxies[proxy_id].layer_depth <= layer_depth {
                        num_subproper_proxies_deleted += 1;
                    }

                    num_proxies_deleted += 1;
                }
            } else {
                break;
            }
        }

        (num_proxies_deleted, num_subproper_proxies_deleted)
    }
/// Removes from this axis all the endpoints that are out of bounds from this axis.
///
/// Returns the number of deleted proxies as well as the number of proxies deleted
/// such that `proxy.layer_depth <= layer_depth`.
Removes from this axis all the endpoints that are out of bounds from this axis.
Returns the number of deleted proxies as well as the number of proxies deleted
such that `proxy.layer_depth <= layer_depth`.
Removes from this axis all the endpoints that are out of bounds from this axis . Returns the number of deleted proxies as well as the number of proxies deleted such that ` proxy . layer_depth < = layer_depth ` .
pub fn delete_out_of_bounds_proxies(
        &self,
        proxies: &SAPProxies,
        existing_proxies: &mut BitVec,
        layer_depth: i8,
    ) -> (usize, usize) {
        let mut num_subproper_proxies_deleted = 0;
        let mut num_proxies_deleted = 0;
        for endpoint in &self.endpoints {
            if endpoint.value < self.min_bound {
                let proxy_id = endpoint.proxy();
                if endpoint.is_end() && existing_proxies[proxy_id as usize] {
                    existing_proxies.set(proxy_id as usize, false);
                    if proxies[proxy_id].layer_depth <= layer_depth {
                        num_subproper_proxies_deleted += 1;
                    }
                    num_proxies_deleted += 1;
                }
            } else {
                break;
            }
        }
        for endpoint in self.endpoints.iter().rev() {
            if endpoint.value > self.max_bound {
                let proxy_id = endpoint.proxy();
                if endpoint.is_start() && existing_proxies[proxy_id as usize] {
                    existing_proxies.set(proxy_id as usize, false);
                    if proxies[proxy_id].layer_depth <= layer_depth {
                        num_subproper_proxies_deleted += 1;
                    }
                    num_proxies_deleted += 1;
                }
            } else {
                break;
            }
        }
        (num_proxies_deleted, num_subproper_proxies_deleted)
    }
pub fn delete_out_of_bounds_proxies ( & self , proxies : & SAPProxies , existing_proxies : & mut BitVec , layer_depth : i8 , ) -> ( usize , usize ) { let mut num_subproper_proxies_deleted = 0 ; let mut num_proxies_deleted = 0 ; for endpoint in & self . endpoints { if endpoint . value < self . min_bound { let proxy_id = endpoint . proxy ( ) ; if endpoint . is_end ( ) && existing_proxies [ proxy_id as usize ] { existing_proxies . set ( proxy_id as usize , false ) ; if proxies [ proxy_id ] . layer_depth <= layer_depth { num_subproper_proxies_deleted += 1 ; } num_proxies_deleted += 1 ; } } else { break ; } } for endpoint in self . endpoints . iter ( ) . rev ( ) { if endpoint . value > self . max_bound { let proxy_id = endpoint . proxy ( ) ; if endpoint . is_start ( ) && existing_proxies [ proxy_id as usize ] { existing_proxies . set ( proxy_id as usize , false ) ; if proxies [ proxy_id ] . layer_depth <= layer_depth { num_subproper_proxies_deleted += 1 ; } num_proxies_deleted += 1 ; } } else { break ; } } ( num_proxies_deleted , num_subproper_proxies_deleted ) }
Removes from this axis all the endpoints that are out of bounds from this axis.
Removes from this axis all the endpoints that are out of bounds from this axis .
&self
proxies
&SAPProxies
existing_proxies
&mut BitVec
layer_depth
i8