Trait utils::vec::TakeOnly
[−]
[src]
pub trait TakeOnly<T> { fn take_only<F>(&mut self, _: F) -> Vec<T>
where
F: Fn(&T) -> bool; }
Take only the elements that return true
from the given condition.
Required Methods
fn take_only<F>(&mut self, _: F) -> Vec<T> where
F: Fn(&T) -> bool,
F: Fn(&T) -> bool,
Take only the elements that return true
from the given condition.
Implementors
impl<T> TakeOnly<T> for Vec<T>