pub trait Retain {
type Input;
// Required method
fn retain(&mut self, input: Self::Input);
}Expand description
See Retain::retain for more information.
Required Associated Types§
Required Methods§
Implementations on Foreign Types§
Source§impl<T> Retain for Option<T>
let mut opt = Some(1);
cl_aux::Retain::retain(&mut opt, |n| n % 2 == 0);
assert_eq!(opt, None);
impl<T> Retain for Option<T>
let mut opt = Some(1);
cl_aux::Retain::retain(&mut opt, |n| n % 2 == 0);
assert_eq!(opt, None);