pub struct QuickFind<K = Owned> { /* private fields */ }Expand description
QuickFind algorithm
Trait Implementations§
Source§impl AlgorithmContainer for QuickFind<Owned>
impl AlgorithmContainer for QuickFind<Owned>
type HeuristicKind<'a> = NoHeuristic
Source§type HeuristicContainer<'a, const N: usize> = [usize; 0]
type HeuristicContainer<'a, const N: usize> = [usize; 0]
Any kind of contiguous container Read more
Source§type RepresentativeContainer<'a, R: VertexType + 'a, const N: usize> = [R; N]
type RepresentativeContainer<'a, R: VertexType + 'a, const N: usize> = [R; N]
Source§type RngKind<'a> = PhantomRng
type RngKind<'a> = PhantomRng
Any kind of RNG
Source§impl AlgorithmContainer for QuickFind<Borrowed>
impl AlgorithmContainer for QuickFind<Borrowed>
type HeuristicKind<'a> = NoHeuristic
Source§type HeuristicContainer<'a, const N: usize> = [usize; 0]
type HeuristicContainer<'a, const N: usize> = [usize; 0]
Any kind of contiguous container Read more
Source§type RepresentativeContainer<'a, R: VertexType + 'a, const N: usize> = &'a mut [R]
type RepresentativeContainer<'a, R: VertexType + 'a, const N: usize> = &'a mut [R]
Source§type RngKind<'a> = PhantomRng
type RngKind<'a> = PhantomRng
Any kind of RNG
Source§impl<T, K> Connected<T> for QuickFind<K>where
T: VertexType,
Self: Find<T>,
impl<T, K> Connected<T> for QuickFind<K>where
T: VertexType,
Self: Find<T>,
fn connected( representative: &mut [T], a: T::IdentifierType, b: T::IdentifierType, ) -> bool
Source§impl<T, K> Find<T> for QuickFind<K>where
T: VertexType,
impl<T, K> Find<T> for QuickFind<K>where
T: VertexType,
fn find(representative: &mut [T], a: T::IdentifierType) -> T
Source§impl<T, K> Union<T, NoHeuristic> for QuickFind<K>where
T: VertexType,
Self: Find<T>,
impl<T, K> Union<T, NoHeuristic> for QuickFind<K>where
T: VertexType,
Self: Find<T>,
fn union_sets( representative: &mut [T], _heuristic: &mut [usize], a: T::IdentifierType, b: T::IdentifierType, _r: &mut PhantomRng, )
Auto Trait Implementations§
impl<K> Freeze for QuickFind<K>
impl<K> RefUnwindSafe for QuickFind<K>where
K: RefUnwindSafe,
impl<K> Send for QuickFind<K>where
K: Send,
impl<K> Sync for QuickFind<K>where
K: Sync,
impl<K> Unpin for QuickFind<K>where
K: Unpin,
impl<K> UnwindSafe for QuickFind<K>where
K: UnwindSafe,
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