Pull

Trait Pull 

Source
pub trait Pull<A, I>
where A: IntoIterator, I: PartialEq + Ord,
{ // Required method fn pull(&mut self, value: I); }
Expand description

A trait that implements the Pull::pull method on arrays.

Required Methods§

Source

fn pull(&mut self, value: I)

Removes a single given value from this array.

  • value - The value to remove.
§Examples
use rodash::Pull;

let mut array = vec!['a', 'b', 'c', 'a', 'b', 'c'];
array.pull('a');
assert_eq!(array, ['b', 'c', 'b', 'c']);

Implementations on Foreign Types§

Source§

impl<A> Pull<Vec<A>, A> for Vec<A>
where A: PartialEq + Ord,

Source§

fn pull(&mut self, value: A)

Implementors§