[][src]Struct broccoli::container::CollidingPairs

pub struct CollidingPairs<T, D> { /* fields omitted */ }

CollidingPairs created via TreeRefInd::collect_colliding_pairs

Implementations

impl<T, D> CollidingPairs<T, D>[src]

pub fn get(&self, arr: &[T]) -> &[(&T, &T, D)]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Return a read only list of colliding pairs. We can't return a list of mutable pairs since some might alias, but we can return a list if they are not mutable.

pub fn for_every_pair_mut(
    &mut self,
    arr: &mut [T],
    func: impl FnMut(&mut T, &mut T, &mut D)
)
[src]

Visit every colliding pair. panics if the slice passed is not the slice used to create this CollidingPairs object.

Trait Implementations

impl<T, D> From<CollidingPairsPar<T, D>> for CollidingPairs<T, D>[src]

Auto Trait Implementations

impl<T, D> RefUnwindSafe for CollidingPairs<T, D> where
    D: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<T, D> Send for CollidingPairs<T, D> where
    D: Send
[src]

impl<T, D> Sync for CollidingPairs<T, D> where
    D: Sync
[src]

impl<T, D> Unpin for CollidingPairs<T, D> where
    D: Unpin
[src]

impl<T, D> UnwindSafe for CollidingPairs<T, D> where
    D: UnwindSafe,
    T: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.