/// Returns the filtered list of patterns, not including hidden fields.
Returns the filtered list of patterns, not including hidden fields.
Returns the filtered list of patterns not including hidden fields .
pub(super) fn filtered_patterns(self) -> SmallVec<[&'p Pat<'tcx>; 2]> {
        match self {
            Fields::Slice(pats) => pats.iter().collect(),
            Fields::Vec(pats) => pats,
            Fields::Filtered { fields, .. } => {
                // We skip hidden fields here
                fields.into_iter().filter_map(|p| p.kept()).collect()
            }
        }
    }
pub ( super ) fn filtered_patterns ( self ) -> SmallVec < [ & ' p Pat < ' tcx > ; 2 ] > { match self { Fields :: Slice ( pats ) => pats . iter ( ) . collect ( ) , Fields :: Vec ( pats ) => pats , Fields :: Filtered { fields , .. } => { // We skip hidden fields here fields . into_iter ( ) . filter_map ( | p | p . kept ( ) ) . collect ( ) } } }
Returns the filtered list of patterns, not including hidden fields.
Returns the filtered list of patterns not including hidden fields .
self