pub struct TwoStageCandidatePolicy {
pub min_candidates: usize,
pub k_multiplier: usize,
pub max_candidates: Option<usize>,
}Fields§
§min_candidates: usize§k_multiplier: usize§max_candidates: Option<usize>Implementations§
Source§impl TwoStageCandidatePolicy
impl TwoStageCandidatePolicy
pub fn candidate_count(&self, k: usize, search_space: usize) -> usize
Trait Implementations§
Source§impl Clone for TwoStageCandidatePolicy
impl Clone for TwoStageCandidatePolicy
Source§fn clone(&self) -> TwoStageCandidatePolicy
fn clone(&self) -> TwoStageCandidatePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TwoStageCandidatePolicy
Source§impl Debug for TwoStageCandidatePolicy
impl Debug for TwoStageCandidatePolicy
Source§impl Default for TwoStageCandidatePolicy
impl Default for TwoStageCandidatePolicy
impl Eq for TwoStageCandidatePolicy
Source§impl PartialEq for TwoStageCandidatePolicy
impl PartialEq for TwoStageCandidatePolicy
Source§fn eq(&self, other: &TwoStageCandidatePolicy) -> bool
fn eq(&self, other: &TwoStageCandidatePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TwoStageCandidatePolicy
Auto Trait Implementations§
impl Freeze for TwoStageCandidatePolicy
impl RefUnwindSafe for TwoStageCandidatePolicy
impl Send for TwoStageCandidatePolicy
impl Sync for TwoStageCandidatePolicy
impl Unpin for TwoStageCandidatePolicy
impl UnsafeUnpin for TwoStageCandidatePolicy
impl UnwindSafe for TwoStageCandidatePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more