pub fn is_public_suffix(&self, psl: &List) -> bool {
        if let Some(domain) = self.as_cow().as_ref().map(|d| d.as_bytes()) {
            psl.suffix(domain)
                // Only consider suffixes explicitly listed in the public suffix list
                // to avoid issues like https://github.com/curl/curl/issues/658
                .filter(Suffix::is_known)
                .filter(|suffix| suffix == &domain)
                .is_some()
        } else {
            false
        }
    }
/// Tests if the domain-attribute is a public suffix as indicated by the provided
/// `publicsuffix::List`.
Tests if the domain-attribute is a public suffix as indicated by the provided
`publicsuffix::List`.
Tests if the domain - attribute is a public suffix as indicated by the provided ` publicsuffix :: List ` .
pub fn is_public_suffix(&self, psl: &List) -> bool {
        if let Some(domain) = self.as_cow().as_ref().map(|d| d.as_bytes()) {
            psl.suffix(domain)
                // Only consider suffixes explicitly listed in the public suffix list
                // to avoid issues like https://github.com/curl/curl/issues/658
                .filter(Suffix::is_known)
                .filter(|suffix| suffix == &domain)
                .is_some()
        } else {
            false
        }
    }
pub fn is_public_suffix ( & self , psl : & List ) -> bool { if let Some ( domain ) = self . as_cow ( ) . as_ref ( ) . map ( | d | d . as_bytes ( ) ) { psl . suffix ( domain ) // Only consider suffixes explicitly listed in the public suffix list // to avoid issues like https://github.com/curl/curl/issues/658 . filter ( Suffix :: is_known ) . filter ( | suffix | suffix == & domain ) . is_some ( ) } else { false } }
Tests if the domain-attribute is a public suffix as indicated by the provided
`publicsuffix::List`.
Tests if the domain - attribute is a public suffix as indicated by the provided ` publicsuffix :: List ` .
&self
psl
&List