Trait Filterablepub

Source
:trait(pub) Filterable filtered
  .filter ( (Self elem) [elem  Bool ]  filtered )
Description

Trait for collections that support element selection by predicate. The filtered associated type determines the output collection so that HashSet filters return a HashSet while Vec filters return a length-existential Vec _.

Required Methods

.filter ( (Self elem) [elem Bool ] filtered )

Retain only elements for which pred returns true. ( (Self elem) [elem -> Bool] -> filtered )

Implementors

impl Filterable for Vec