pub struct ListTool;Implementations§
Source§impl ListTool
impl ListTool
pub fn new() -> Self
pub fn chunk<T: Clone>(&self, list: &[T], size: usize) -> Vec<Vec<T>>
pub fn unique<T: Clone + Eq + Hash>(&self, list: &[T]) -> Vec<T>
pub fn intersect<T: Clone + Eq + Hash>(&self, a: &[T], b: &[T]) -> Vec<T>
pub fn union<T: Clone + Eq + Hash>(&self, a: &[T], b: &[T]) -> Vec<T>
pub fn difference<T: Clone + Eq + Hash>(&self, a: &[T], b: &[T]) -> Vec<T>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListTool
impl RefUnwindSafe for ListTool
impl Send for ListTool
impl Sync for ListTool
impl Unpin for ListTool
impl UnsafeUnpin for ListTool
impl UnwindSafe for ListTool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more