pub fn filter_attr(&self, attrs: Vec<syn::Attribute>) -> Vec<syn::Attribute> {
        attrs
            .into_iter()
            .filter(|attr| {
                if let Some(ident) = attr.path.get_ident() {
                    self.0.contains_key(&ident.to_string())
                } else {
                    false
                }
            })
            .collect()
    }
/// Returns the filtered input vector of whitelisted attributes.
/// All not whitelisted attributes are removed.
Returns the filtered input vector of whitelisted attributes.
All not whitelisted attributes are removed.
Returns the filtered input vector of whitelisted attributes . All not whitelisted attributes are removed .
pub fn filter_attr(&self, attrs: Vec<syn::Attribute>) -> Vec<syn::Attribute> {
        attrs
            .into_iter()
            .filter(|attr| {
                if let Some(ident) = attr.path.get_ident() {
                    self.0.contains_key(&ident.to_string())
                } else {
                    false
                }
            })
            .collect()
    }
pub fn filter_attr ( & self , attrs : Vec < syn :: Attribute > ) -> Vec < syn :: Attribute > { attrs . into_iter ( ) . filter ( | attr | { if let Some ( ident ) = attr . path . get_ident ( ) { self . 0 . contains_key ( & ident . to_string ( ) ) } else { false } } ) . collect ( ) }
Returns the filtered input vector of whitelisted attributes.
Returns the filtered input vector of whitelisted attributes .
&self
attrs
Vec<syn::Attribute>