pub enum CandidateContainer {
Linear,
BinaryHeap,
}Expand description
The type of container to keep candidates
Variants§
Linear
use a linear vector to keep candidates, good for small k
BinaryHeap
use a binary heap to keep candidates, good for large k
Trait Implementations§
Source§impl Clone for CandidateContainer
impl Clone for CandidateContainer
Source§fn clone(&self) -> CandidateContainer
fn clone(&self) -> CandidateContainer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CandidateContainer
Auto Trait Implementations§
impl Freeze for CandidateContainer
impl RefUnwindSafe for CandidateContainer
impl Send for CandidateContainer
impl Sync for CandidateContainer
impl Unpin for CandidateContainer
impl UnwindSafe for CandidateContainer
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