pub struct CandidateStore<S, M>where
S: PlanningSolution,
M: Move<S>,{ /* private fields */ }Implementations§
Source§impl<S, M> CandidateStore<S, M>where
S: PlanningSolution,
M: Move<S>,
impl<S, M> CandidateStore<S, M>where
S: PlanningSolution,
M: Move<S>,
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn push(&mut self, mov: M) -> CandidateId
pub fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = M>,
pub fn candidate(&self, id: CandidateId) -> Option<MoveCandidateRef<'_, S, M>>
pub fn take_candidate(&mut self, id: CandidateId) -> M
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<S, M> Default for CandidateStore<S, M>where
S: PlanningSolution,
M: Move<S>,
impl<S, M> Default for CandidateStore<S, M>where
S: PlanningSolution,
M: Move<S>,
Auto Trait Implementations§
impl<S, M> Freeze for CandidateStore<S, M>
impl<S, M> RefUnwindSafe for CandidateStore<S, M>where
M: RefUnwindSafe,
impl<S, M> Send for CandidateStore<S, M>
impl<S, M> Sync for CandidateStore<S, M>
impl<S, M> Unpin for CandidateStore<S, M>where
M: Unpin,
impl<S, M> UnsafeUnpin for CandidateStore<S, M>
impl<S, M> UnwindSafe for CandidateStore<S, M>where
M: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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