/// Returns `true` if self has SSL (super-secret listening) support, `false` otherwise.
///
/// > An IP supports SSL if it has an Area-Broadcast Accessor, or ABA, anywhere in the
/// > supernet sequences (outside any square bracketed sections), and a corresponding Byte
/// > Allocation Block, or BAB, anywhere in the hypernet sequences.
Returns `true` if self has SSL (super-secret listening) support, `false` otherwise.
> An IP supports SSL if it has an Area-Broadcast Accessor, or ABA, anywhere in the
> supernet sequences (outside any square bracketed sections), and a corresponding Byte
> Allocation Block, or BAB, anywhere in the hypernet sequences.
Returns ` true ` if self has SSL ( super - secret listening ) support ` false ` otherwise . > An IP supports SSL if it has an Area - Broadcast Accessor or ABA anywhere in the > supernet sequences ( outside any square bracketed sections ) and a corresponding Byte > Allocation Block or BAB anywhere in the hypernet sequences .
pub fn has_ssl_support(&self) -> bool {
            let mut hypernets = self.segments.iter().filter(|&seg| seg.is_hypernet());
            let     supernets = self.segments.iter().filter(|&seg| seg.is_supernet());
            // collect from all the Area-Broadcast Accessor from the supernet sequences.
            let mut babset = HashSet::new();
            for snet in supernets {
                for aba in snet.bab() {
                    babset.insert(aba.inverse());
                }
            }
            // If we did not find any ABA we're done.
            if babset.is_empty() {
                return false;
            }
            // look through our hypernet for the first BAB match.
            hypernets.any(|seg| {
                seg.bab().any(|bab| babset.contains(&bab))
            })
        }
pub fn has_ssl_support ( & self ) -> bool { let mut hypernets = self . segments . iter ( ) . filter ( | & seg | seg . is_hypernet ( ) ) ; let supernets = self . segments . iter ( ) . filter ( | & seg | seg . is_supernet ( ) ) ; // collect from all the Area-Broadcast Accessor from the supernet sequences. let mut babset = HashSet :: new ( ) ; for snet in supernets { for aba in snet . bab ( ) { babset . insert ( aba . inverse ( ) ) ; } } // If we did not find any ABA we're done. if babset . is_empty ( ) { return false ; } // look through our hypernet for the first BAB match. hypernets . any ( | seg | { seg . bab ( ) . any ( | bab | babset . contains ( & bab ) ) } ) }
Returns `true` if self has SSL (super-secret listening) support, `false` otherwise.
Returns ` true ` if self has SSL ( super - secret listening ) support ` false ` otherwise .
&self