Trait SlicePartitionDedup

Source
pub trait SlicePartitionDedup<T> {
    // Required methods
    fn nq_partition_dedup_by<F>(
        &mut self,
        same_bucket: F,
    ) -> (&mut [T], &mut [T])
       where F: FnMut(&mut T, &mut T) -> bool;
    fn nq_partition_dedup(&mut self) -> (&mut [T], &mut [T])
       where T: PartialEq;
}

Required Methods§

Source

fn nq_partition_dedup_by<F>(&mut self, same_bucket: F) -> (&mut [T], &mut [T])
where F: FnMut(&mut T, &mut T) -> bool,

Source

fn nq_partition_dedup(&mut self) -> (&mut [T], &mut [T])
where T: PartialEq,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> SlicePartitionDedup<T> for [T]

Source§

fn nq_partition_dedup_by<F>(&mut self, same_bucket: F) -> (&mut [T], &mut [T])
where F: FnMut(&mut T, &mut T) -> bool,

Source§

fn nq_partition_dedup(&mut self) -> (&mut [T], &mut [T])
where T: PartialEq,

Implementors§